ligwin
ligwin

Reputation: 1191

wxpython cursor off event?

is there a mouse off (or cursor off) event in wxpython as I need to bind such an event to a panel, making it 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.

Upvotes: 2

Views: 189

Answers (1)

tom10
tom10

Reputation: 69182

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).

Upvotes: 1

Related Questions