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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user