[Tkinter-discuss] Correct order for dialog display
klappnase at web.de
Thu Sep 30 11:38:54 CEST 2010
Thus spoketh Vasilis Vlachoudis <Vasilis.Vlachoudis at cern.ch>
unto us on Thu, 30 Sep 2010 09:30:27 +0200:
> Dear all,
> In my application I have several custom made Toplevel windows when they
> close they remember their position and size, so the next time to open
> them using with the same geometry.
> Therefore in the show method I have the following sequence
> def show(self):
> self.geometry("%dx%d+%d+%d", self.width, self.height, self.x,
You might try to change your func like this:
self.geometry("%dx%d+%d+%d", self.width, self.height, self.x,self.y)
This way you should be able to avoid the ugly visible resizing, at least
I have used this successfully on X, I don't have any experience with
I hope this helps
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
The only solution is ... a balance of power. We arm our side with exactly
that much more. A balance of power -- the trickiest, most difficult,
dirtiest game of them all. But the only one that preserves both sides.
-- Kirk, "A Private Little War", stardate 4211.8
More information about the Tkinter-discuss