Tkinter: centering windows on screen

Fredrik Lundh effbot at telia.com
Sun Apr 9 21:28:29 CEST 2000


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:
http://w1.132.telia.com/~u13208596/tkintrobook/x9867-window-geometry-methods
.htm

file dialogues:
http://w1.132.telia.com/~u13208596/tkintrobook/x1164-data-entry.htm

(direct pointers to the current draft; official version at
www.pythonware.com will be synchronized next week).

</F>





More information about the Python-list mailing list