X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..78577dcb71a8d748b9f5708321c3956c8b83bbe1:/wxPython/src/_slider.i diff --git a/wxPython/src/_slider.i b/wxPython/src/_slider.i index f1eb5a9d4c..5d4e64329c 100644 --- a/wxPython/src/_slider.i +++ b/wxPython/src/_slider.i @@ -18,20 +18,23 @@ %{ #include - DECLARE_DEF_STRING(SliderNameStr); %} +MAKE_CONST_WXSTRING(SliderNameStr); + //--------------------------------------------------------------------------- %newgroup class wxSlider : public wxControl { public: - %addtofunc wxSlider "self._setOORInfo(self)" - %addtofunc wxSlider() "" + %pythonPrepend wxSlider "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']" + %pythonPrepend wxSlider() "" + %pythonAppend wxSlider "self._setOORInfo(self)" + %pythonAppend wxSlider() "" wxSlider(wxWindow* parent, wxWindowID id, int value, int minValue, int maxValue, - const wxPoint& point = wxDefaultPosition, + const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, @@ -40,7 +43,7 @@ public: bool Create(wxWindow* parent, wxWindowID id, int value, int minValue, int maxValue, - const wxPoint& point = wxDefaultPosition, + const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, @@ -70,7 +73,7 @@ public: virtual void SetThumbLength(int lenPixels); virtual int GetThumbLength() const; - virtual void SetTickFreq(int n, int pos); + virtual void SetTickFreq(int n, int pos=1); virtual int GetTickFreq() const; virtual void ClearTicks(); virtual void SetTick(int tickPos);