Displaying Toplevel window in user specified location.................

Fredrik Lundh fredrik at pythonware.com
Mon May 12 05:33:28 EDT 2003


"Python-lover" wrote:

>    how to place a toplevel window in a loaction
> specified by the user? I have a button in main window.
> I want to display a toplevel window in a location ,say
> (100,100), if i click the button.

    top.geometry("+100+100")

    top.geometry("%+d%+d" % (x, y))

also see:

http://www.pythonware.com/library/tkinter/introduction/toplevel-window-methods.htm
=> window geometry methods

</F>









More information about the Python-list mailing list