I know how to create a window of a given size. How do I control the placement of items like labels and text boxes in that window?
DanWebb3148
0
Newbie Poster
Recommended Answers
Jump to PostWith the Tkinter GUI toolkit there a several ways to layout the position of the widgets. Here is an example of an absolute place layout ...
# set position and size of a Tkinter window # also set the position of any widgets using place(x, y) layout …
Jump to PostExperiment with side and expand parameters to pack and use help frames! You must assign frame first and pack it separately to use it for other widgets.
def showAbout(): t1 = Toplevel(root) t1.geometry("430x300") t1.title('About Lemniscate') f = Frame(t1) f.pack(side=LEFT, expand=False) Label(f, text='Draw Lemniscate Curve', font=("Arial", 14)).pack(pady=30, side=TOP) …
All 5 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
DanWebb3148
0
Newbie Poster
DanWebb3148
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
DanWebb3148
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.