Wednesday, March 20, 2013

Tkinter, set window size using geometry

set window size using geometry
set window size using geometry


#tkinter for Python 3.x
#Tkinter for Python 2.x

import tkinter

tkTop = tkinter.Tk()
tkTop.geometry('300x200')
tkButtonQuit = tkinter.Button(tkTop, text="Quit", command=tkTop.quit)
tkButtonQuit.pack()
tkinter.mainloop()


No comments:

Post a Comment