开发者

Is there anyway to bind an event handler to a Tkinter window being moved?

I'm trying to make it so that if a Tkinter window is dragged or moved in any way, a function开发者_Python百科 is called. Is there any way to do this?

This is in Windows 7.


Possibly the configure event.

http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm

search for:

<Configure>
The widget changed size (or location, on some platforms). The new size is 
provided in the width and height attributes of the event object passed to the callback.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜