// wxSP_VERTICAL: vertical spin button (the default)
// wxSP_ARROW_KEYS: arrow keys increment/decrement value
// wxSP_WRAP: value wraps at either end
+MustHaveApp(wxSpinButton);
class wxSpinButton : public wxControl
{
public:
- %addtofunc wxSpinButton "self._setOORInfo(self)"
- %addtofunc wxSpinButton() ""
+ %pythonAppend wxSpinButton "self._setOORInfo(self)"
+ %pythonAppend wxSpinButton() ""
wxSpinButton(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
// is this spin button vertically oriented?
bool IsVertical() const;
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
};
// a spin ctrl is a text control with a spin button which is usually used to
// prompt the user for a numeric input
+MustHaveApp(wxSpinCtrl);
+
class wxSpinCtrl : public wxControl
{
public:
- %addtofunc wxSpinCtrl "self._setOORInfo(self)"
- %addtofunc wxSpinCtrl() ""
+ %pythonAppend wxSpinCtrl "self._setOORInfo(self)"
+ %pythonAppend wxSpinCtrl() ""
wxSpinCtrl(wxWindow *parent,
wxWindowID id = -1,
virtual int GetMin() const;
virtual int GetMax() const;
void SetSelection(long from, long to);
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
};