Added wrappers for the missing wxSpinEvent, which fixes the deadlock

when trying to catch events from wxSpinButton.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-15 01:04:38 +00:00
parent 756d3e7fb5
commit b1dfbb7ad8
3 changed files with 18 additions and 5 deletions

View File

@@ -120,11 +120,27 @@ public:
};
//---------------------------------------------------------------------------
class wxSpinEvent : public wxNotifyEvent
{
public:
wxSpinEvent(wxEventType commandType = wxEVT_NULL, int winid = 0);
// get the current value of the control
int GetPosition() const;
void SetPosition(int pos);
};
%constant wxEventType wxEVT_COMMAND_SPINCTRL_UPDATED;
%pythoncode {
EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1)
EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1)
EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1)
EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1)
EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1)
}