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).
精彩评论