开发者

wxpython cursor off event?

开发者 https://www.devze.com 2023-01-10 06:27 出处:网络
is there a mouse off (or cursor off) event in wxpython as I need to bind such an event to a panel, making 开发者_如何学Goit can automatically store the values input by the user when he is done and cli

is there a mouse off (or cursor off) event in wxpython as I need to bind such an event to a panel, making 开发者_如何学Goit can automatically store the values input by the user when he is done and click on the other panel. Or is there any other alternative way to make it look nicer without creating uncessary buttons then to bind events to these buttons.


There's EVT_LEAVE_WINDOW which will fire when the cursor goes off the panel.

Or maybe you'd rather use EVT_KILL_FOCUS which will be sent when the panel loses focus (e.g. in your example when the user clicks on another panel or button).

0

精彩评论

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