X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2dc104421c340091342156d6b01f61f1ccff438..e47ce385a75d78babaaac68d47d6f4dd5230a31c:/wxPython/src/_scrolbar.i diff --git a/wxPython/src/_scrolbar.i b/wxPython/src/_scrolbar.i index 5a32c1503f..2bcc4eddb5 100644 --- a/wxPython/src/_scrolbar.i +++ b/wxPython/src/_scrolbar.i @@ -20,10 +20,12 @@ MAKE_CONST_WXSTRING(ScrollBarNameStr); //--------------------------------------------------------------------------- %newgroup +MustHaveApp(wxScrollBar); + class wxScrollBar : public wxControl { public: - %addtofunc wxScrollBar "self._setOORInfo(self)" - %addtofunc wxScrollBar() "" + %pythonAppend wxScrollBar "self._setOORInfo(self)" + %pythonAppend wxScrollBar() "" wxScrollBar(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -31,7 +33,7 @@ public: long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxPyScrollBarNameStr); - %name(PreScrollBar)wxScrollBar(); + %RenameCtor(PreScrollBar, wxScrollBar()); bool Create(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -49,9 +51,16 @@ public: bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; } virtual void SetThumbPosition(int viewStart); - virtual void SetScrollbar(int position, int thumbSize, - int range, int pageSize, - bool refresh = True); + + DocDeclStr( + virtual void , SetScrollbar(int position, int thumbSize, + int range, int pageSize, + bool refresh = true), + "", ""); + + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------