]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_slider.i
Allow the frame (if there is one) to resize the toolbar after Realize
[wxWidgets.git] / wxPython / src / _slider.i
index 5d4e64329c933e96f6dd09335dcfeac2971a6606..366f977114af4eeaa46df542701df0a917faa53b 100644 (file)
@@ -25,6 +25,24 @@ 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 {
 public:
     %pythonPrepend wxSlider         "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']"
@@ -32,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,
@@ -83,6 +101,9 @@ public:
     virtual int GetSelStart() const;
     virtual void SetSelection(int min, int max);
 
+
+    static wxVisualAttributes
+    GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 };
 
 //---------------------------------------------------------------------------