X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..df16c649d21716a3e54eb2598477fa9ed970f278:/wxPython/src/_slider.i diff --git a/wxPython/src/_slider.i b/wxPython/src/_slider.i index f1eb5a9d4c..7ecf040a2e 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); @@ -80,6 +83,9 @@ public: virtual int GetSelStart() const; virtual void SetSelection(int min, int max); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------