Pack left : Layout : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Layout »

 

Pack left


Pack left
from Tkinter import *


root = Tk()
root.wm_title("Case "


fm = Frame(root, width=300, height=200, bg="blue")
fm.pack(side=TOP, expand=NO, fill=NONE)
    
root.geometry("600x400"

Button(fm, text="Button 1", width=10).pack(side=LEFT)
Button(fm, text="Button 2", width=10).pack(side=LEFT)
Button(fm, text="Button 3", width=10).pack(side=LEFT)


root.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Layout