Re: How to define a window's position (Tkinter)

2005-02-28 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Harlin Seritt" <[EMAIL PROTECTED]> wrote: >I am trying to use the geometry() method with the toplevel window >called root. I know that one can do the following: > >root.geometry('400x400+200+200') > >This will put the window in 200, 200 position with a size of 400

Re: How to define a window's position (Tkinter)

2005-02-27 Thread Steve
I suspect you need to retrieve the window size, calculate the position based on the size, and reset size and position. You might look at http://www.ferg.org/easygui/index.html for some ideas. Scroll down to the definition of the __choicebox routine. Good luck! -- Steve Ferg -- http://mail.pyt