[Tutor] starting a tkinter window maximized
kromag@nsacom.net
kromag@nsacom.net
Thu, 3 May 2001 20:53:32 -0700 (PDT)
Harry Kattz <gibbs05@flash.net> said:
> wm_state('zoomed') should maximize on Windows. For example:
>
> >>> import os
> >>> from Tkinter import *
> >>> class MaxWin(Tk):
> ... def __init__(self):
> ... Tk.__init__(self)
> ... Label(self, text = "Test Zoom").pack()
> ... if os.name == 'nt':
> ... self.wm_state('zoomed')
> ...
> >>> test = MaxWin()
> >>> test.mainloop()
>
> This produced a full size window with a label.
>
Hrm.. Does this work in win9x as opposed to NT? This does not appear to work
on my 95 and 98 boxes.
d