//---------------------------------------------------------------------------
%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']"
+ %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,
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,
virtual int GetSelStart() const;
virtual void SetSelection(int min, int max);
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %property(LineSize, GetLineSize, SetLineSize, doc="See `GetLineSize` and `SetLineSize`");
+ %property(Max, GetMax, SetMax, doc="See `GetMax` and `SetMax`");
+ %property(Min, GetMin, SetMin, doc="See `GetMin` and `SetMin`");
+ %property(PageSize, GetPageSize, SetPageSize, doc="See `GetPageSize` and `SetPageSize`");
+ %property(SelEnd, GetSelEnd, doc="See `GetSelEnd`");
+ %property(SelStart, GetSelStart, doc="See `GetSelStart`");
+ %property(ThumbLength, GetThumbLength, SetThumbLength, doc="See `GetThumbLength` and `SetThumbLength`");
+ %property(TickFreq, GetTickFreq, SetTickFreq, doc="See `GetTickFreq` and `SetTickFreq`");
+ %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
};
//---------------------------------------------------------------------------