I have a canvas and have to perform some action when it is resized. How can I get notified when resizing happened? How do I find out the amount of the change (without keeping the old size myself)? I tried overriding config (configure), but it is not called during resizing. Thanks for any advice! Titus
I have a canvas and have to perform some action when it is resized. How can I get notified when resizing happened? How do I find out the amount of the change (without keeping the old size myself)?
I tried overriding config (configure), but it is not called during resizing. . . . Is <URL: http://mail.python.org/pipermail/python-list/2007-January/424098.html >
On Thu, Aug 30, 2007 at 12:38:49PM +0200, Titus von der Malsburg wrote: . . . the sort of thing you're after? Note the spelling: "<Configure>".
I've found that the generation of the <Configure> can also change from OS to OS, and from system to system with the same OS. Tkinter on Windows seems to only generate the <Configure> when you are finished resizing (which may or may not be what you want), and some Linux/Solaris/OSX systems generate it (a lot) while you are moving the mouse (which may or may not be what you want). I don't know how to change it, but I think generating the <Configure> while the mouse is moving may be a configuration option of X11, so you may have to allow for either case. Bob On Aug 30, 2007, at 08:24, Cameron Laird wrote:
I have a canvas and have to perform some action when it is resized. How can I get notified when resizing happened? How do I find out the amount of the change (without keeping the old size myself)?
I tried overriding config (configure), but it is not called during resizing. . . . Is <URL: http://mail.python.org/pipermail/python-list/2007-January/ 424098.html >
On Thu, Aug 30, 2007 at 12:38:49PM +0200, Titus von der Malsburg wrote: . . . the sort of thing you're after? Note the spelling: "<Configure>". _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss
participants (3)
-
Bob Greschke -
Cameron Laird -
Titus von der Malsburg