Set size of main window : Frame : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Frame »

 

Set size of main window


Set size of main window
from Tkinter import *
def hello(): print 'Hello, world!'
win = Tk()

win.title('Hello, Tkinter!')
win.geometry('200x100') # Size 200200

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 TUTORIALS

 Navioo Tkinker
» Frame