Mega Code Archive

 
Categories / Python Tutorial / Tkinker
 

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()