Maximize main window with code

JohnJohnUSA JohnJohnUSA at hotmail-dot-com.no-spam.invalid
Fri Jun 30 22:52:06 EDT 2006


I am new to Python.  How do I get the following program to appear
initially with the window maximized?  Thanks for your help!

from Tkinter import *
# set up the window itself
top = Tk()
F = Frame(top)
F.pack()
# add the widgets
lHello = Label(F, text="Hello")
lHello.pack()
bQuit = Button(F, text="Quit", command=F.quit)
bQuit.pack()
# set the loop running
top.mainloop()




More information about the Python-list mailing list