Tkinter - centering, positioning new windows

Fredrik Lundh effbot at telia.com
Sat Mar 11 10:55:59 CET 2000


Christian Tanzer <tanzer at swing.co.at> wrote:
> `wm_geometry' allows setting the size and/or position of a toplevel
> window. The argument to it is a string of the form
>
>     "%dx%d+%d+%d" % (width, height, x_position, y_position)

better make that:

    "%dx%d%+d%+d" % (width, height, x_position, y_position)

</F>





More information about the Python-list mailing list