X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..32bf5e4a38676c7b5997c9cc27cdf44adeb7b6b5:/wxPython/src/_slider.i diff --git a/wxPython/src/_slider.i b/wxPython/src/_slider.i index 4ed28e4ff0..6ecb209afe 100644 --- a/wxPython/src/_slider.i +++ b/wxPython/src/_slider.i @@ -25,15 +25,17 @@ MAKE_CONST_WXSTRING(SliderNameStr); //--------------------------------------------------------------------------- %newgroup +MustHaveApp(wxSlider); + class wxSlider : public wxControl { public: - %pythonPrepend wxSlider "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point']" + %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, + wxSlider(wxWindow* parent, wxWindowID id=-1, + int value=0, int minValue=0, int maxValue=100, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, @@ -41,8 +43,8 @@ public: const wxString& name = wxPySliderNameStr); %name(PreSlider)wxSlider(); - bool Create(wxWindow* parent, wxWindowID id, - int value, int minValue, int maxValue, + bool Create(wxWindow* parent, wxWindowID id=-1, + int value=0, int minValue=0, int maxValue=100, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, @@ -83,6 +85,9 @@ public: virtual int GetSelStart() const; virtual void SetSelection(int min, int max); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------