X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1dfbb7ad894afb95c58932926540b6972a50567..83cbb9e995edca4f729aab005df43f23be8f3261:/wxPython/src/_spin.i?ds=sidebyside diff --git a/wxPython/src/_spin.i b/wxPython/src/_spin.i index 0045d2733d..1b100a21e5 100644 --- a/wxPython/src/_spin.i +++ b/wxPython/src/_spin.i @@ -41,8 +41,8 @@ enum { class wxSpinButton : public wxControl { public: - %addtofunc wxSpinButton "self._setOORInfo(self)" - %addtofunc wxSpinButton() "" + %pythonAppend wxSpinButton "self._setOORInfo(self)" + %pythonAppend wxSpinButton() "" wxSpinButton(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -80,8 +80,8 @@ public: class wxSpinCtrl : public wxControl { public: - %addtofunc wxSpinCtrl "self._setOORInfo(self)" - %addtofunc wxSpinCtrl() "" + %pythonAppend wxSpinCtrl "self._setOORInfo(self)" + %pythonAppend wxSpinCtrl() "" wxSpinCtrl(wxWindow *parent, wxWindowID id = -1, @@ -109,14 +109,7 @@ public: virtual void SetRange( int minVal, int maxVal ); virtual int GetMin() const; virtual int GetMax() const; -#ifdef __WXGTK__ - %extend { - void SetSelection(long from, long to) { - } - } -#else void SetSelection(long from, long to); -#endif };