Use layout : Layout : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » Layout »

 

Use layout


Use layout: fill

from Tkinter import *
def hello(): print 'Hello, world!'

win = Tk() 
win.title('Hello, Tkinter!')
win.geometry('200x100')

btn = Button(win, text='Hello', command=hello)
btn.pack(expand=YES, fill=BOTH)

mainloop()

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo GUI Tk
» Layout