X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde..46ae103b9f08fc4e447d16a6a92b03cf55ee3189:/wxPython/src/_slider.i diff --git a/wxPython/src/_slider.i b/wxPython/src/_slider.i index 17d51db2e6..366f977114 100644 --- a/wxPython/src/_slider.i +++ b/wxPython/src/_slider.i @@ -25,6 +25,22 @@ MAKE_CONST_WXSTRING(SliderNameStr); //--------------------------------------------------------------------------- %newgroup +enum { + wxSL_HORIZONTAL, + wxSL_VERTICAL, + wxSL_TICKS, + wxSL_AUTOTICKS, + wxSL_LABELS, + wxSL_LEFT, + wxSL_TOP, + wxSL_RIGHT, + wxSL_BOTTOM, + wxSL_BOTH, + wxSL_SELRANGE, + wxSL_INVERSE +}; + + MustHaveApp(wxSlider); class wxSlider : public wxControl { @@ -34,17 +50,17 @@ public: %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, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxPySliderNameStr); - %name(PreSlider)wxSlider(); + %RenameCtor(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,