Help with display placement
akameswaran at gmail.com
akameswaran at gmail.com
Tue Apr 4 13:05:34 EDT 2006
Ok so I'm not to bright sometimes
Well if you want this kinda control I suggest you go ahead and subclass
toplevel, but the simple answer before running
root.mainloop()
make a call to
root.geometry(geometryString)
geoometrystring is in the format WxH+X+Y - you may hve to do some
screen calcs first to get the right numbers. ie "50x100+50+50" create
a 50pix by 100 pix window offset 50 from the top and 50 from the left.
To my mind, better to subclass toplevel and set everything in there -
but's mostly stylistic preference for something this simple.
And while I'm making suggestions ;) Try wxPython. I used tKinter for
about 3 months before tossing it in frustration when I wanted to do
somtheing "slick" , but I have a lot of fondness for some quick and
dirty UI's I did in tKinter a ways back.
More information about the Python-list
mailing list