Hi,
Thus spoketh Vasilis Vlachoudis <[email protected]>
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.deiconify()
> self.geometry("%dx%d+%d+%d", self.width, self.height, self.x,
> self.y)
> self.wait_visibility()
>
You might try to change your func like this:
def show(self):
self.withdraw()
self.geometry("%dx%d+%d+%d", self.width, self.height, self.x,self.y)
self.update_idletasks()
self.deiconify()
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
VirtualBox, though.
I hope this helps
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
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
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss