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:
@@ -77,6 +77,7 @@
|
|||||||
%rename(SP_WRAP) wxSP_WRAP;
|
%rename(SP_WRAP) wxSP_WRAP;
|
||||||
%rename(SpinButton) wxSpinButton;
|
%rename(SpinButton) wxSpinButton;
|
||||||
%rename(SpinCtrl) wxSpinCtrl;
|
%rename(SpinCtrl) wxSpinCtrl;
|
||||||
|
%rename(SpinEvent) wxSpinEvent;
|
||||||
%rename(RadioBox) wxRadioBox;
|
%rename(RadioBox) wxRadioBox;
|
||||||
%rename(RadioButton) wxRadioButton;
|
%rename(RadioButton) wxRadioButton;
|
||||||
%rename(Slider) wxSlider;
|
%rename(Slider) wxSlider;
|
||||||
|
@@ -314,10 +314,6 @@ EVT_COMMAND_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1)
|
|||||||
EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1)
|
EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1)
|
||||||
EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1)
|
EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1)
|
||||||
|
|
||||||
EVT_SPIN_UP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1)
|
|
||||||
EVT_SPIN_DOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1)
|
|
||||||
EVT_SPIN = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1)
|
|
||||||
|
|
||||||
EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1)
|
EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1)
|
||||||
EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1)
|
EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1)
|
||||||
EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1)
|
EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1)
|
||||||
|
@@ -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;
|
%constant wxEventType wxEVT_COMMAND_SPINCTRL_UPDATED;
|
||||||
|
|
||||||
|
|
||||||
%pythoncode {
|
%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