Tkinter newbie question
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed Aug 11 21:51:41 EDT 1999
Clarence Gardner wrote:
>
> So, is there a general way to know what to do after you've found a Tk
> function that you want to call?
Tkinter is a wrapper around the Tcl interface to
Tk, not the C interface. So looking in the C
interface documentation is generally not helpful.
The traditional way is first to work out how you
would do it from Tcl (using the Tcl-level documentation
for Tk) then find out how that interface has been
translated into Python (by reading Tkinter.py).
There is also some alternative Tkinter documentation
available now, written with less reference to Tcl terms.
See
http://starship.python.net/crew/fredrik/tkintro/Introduction.htm
http://starship.python.net/crew/fredrik/tkclass/
It's not complete enough to completely replace the
Tcl documentation, however.
To answer your specific question, I think you need
to use the geometry method of the window:
win.geometry(newGeometry)
which corresponds to the Tcl "wm geometry" command.
--
Greg Ewing, Computer Science Dept, | The address below is not spam-
University of Canterbury, | protected, so as not to waste
Christchurch, New Zealand | the time of Guido van Rossum.
greg at cosc.canterbury.ac.nz
More information about the Python-list
mailing list