[Tkinter-discuss] Upload control parameter sashpos to load the program.

Michael Lange klappnase at web.de
Sat Dec 18 02:41:57 CET 2010


Hi,

Thus spoketh craf <prog at vtr.net> 
unto us on Fri, 17 Dec 2010 19:49:58 -0300:

> Hi.
> 
> I'm trying that opening the window, the position of the handle, is
> located where you want, using the method "sashpos", in the following
> code....
(...)
> --------------------------------------------------------------------
> The problem is that the method is not taken into account when loading
> the window.
> 
> There is an event that allows to open the program, run the method?.

Try to call update_idletasks() before calling sashpos(), so tk can
calculate the size of the widgets first. I haven't tried it right now,
but this is usually the first attempt in such cases and will probably
help ;)

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Superior ability breeds superior ambition.
		-- Spock, "Space Seed", stardate 3141.9


More information about the Tkinter-discuss mailing list