Tkinter: centering windows on screen
kcazabon at home.com
Sun Apr 9 23:30:24 CEST 2000
Ahhhh... kinda painful until I call .update_idletasks() before reading the
geometry... It's a toplevel widget, and geometry() returns 1x1 as the size
if you dont.
"Fredrik Lundh" <effbot at telia.com> wrote in message
news:xR4I4.274$rc9.188784640 at newsb.telia.net...
> Kilian Lorenz <kilian.lorenz at dkfz-heidelberg.de> wrote:
> > >> that works but doesn't help me much because I'm interested in the
> > >> return value. So I would really like to know how to call Tk commands
> > >> from within Python because .... blah blah
> > Now I also found out how this works ... pretty easy with
> > <widget>.tk.call(<command>, <parameter>, <next parameter> ...)
> > You just have to browse Tkinter.py and get the answers to all your
> > questions ! :)
> if you browsed the source, how come you didn't find the
> corresponding Tkinter methods?
> windows geometry:
> file dialogues:
> (direct pointers to the current draft; official version at
> www.pythonware.com will be synchronized next week).
More information about the Python-list