]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_spin.i
Added wrappers for the missing wxSpinEvent, which fixes the deadlock
[wxWidgets.git] / wxPython / src / _spin.i
index c092ec83036396c4c8669aab291079f05c2d1e02..0045d2733d37ec75f497b6c87e6d4995c3687ad4 100644 (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)
 }