Tkinter #4 : Frame in Tkinter
Frame in Tkinter
Frame in tkinter is just like a div tag in html. Frame is used to make a specific body and to alot a particular space to an area in uI.
Syntax for Frame
syntax :
Variable name = Frame(window name , other attributes)
How to set Frame ?
To set frame follow the following steps
******************
f1 = Fram(name of window,)
f1.pack()
#This will create a frame which is invisible
la = Label(fl,text='fhfhfj')
la.pack()
# Now this label is packed in the above frame so now frame is visible
******************
Attributes of Frame
The attributes of Frame is just like label attributes.
like bg,padx,pady,borderwidth etc.
Comments
Post a Comment