JohnJohnUSA wrote: > 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() >
This gets pretty close: top.geometry('%sx%s+0+0' % top.maxsize()) James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com/ -- http://mail.python.org/mailman/listinfo/python-list