X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b8c7ba607a15a2ff8a04448138df9ffff7df6c5..bda4b4c6849c375679b39a55e257dedf39a8ba90:/wxPython/src/_statctrls.i diff --git a/wxPython/src/_statctrls.i b/wxPython/src/_statctrls.i index a22abfe080..b3be54e960 100644 --- a/wxPython/src/_statctrls.i +++ b/wxPython/src/_statctrls.i @@ -19,6 +19,7 @@ MAKE_CONST_WXSTRING(StaticBitmapNameStr); MAKE_CONST_WXSTRING(StaticBoxNameStr); MAKE_CONST_WXSTRING(StaticTextNameStr); +MAKE_CONST_WXSTRING(StaticLineNameStr); //--------------------------------------------------------------------------- %newgroup @@ -69,14 +70,14 @@ public: const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxLI_HORIZONTAL, - const wxString& name = wxPyStaticTextNameStr); + const wxString& name = wxPyStaticLineNameStr); %RenameCtor(PreStaticLine, wxStaticLine()); bool Create( wxWindow *parent, wxWindowID id=-1, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxLI_HORIZONTAL, - const wxString& name = wxPyStaticTextNameStr); + const wxString& name = wxPyStaticLineNameStr); // is the line vertical? bool IsVertical() const; @@ -114,6 +115,14 @@ public: long style = 0, const wxString& name = wxPyStaticTextNameStr); + DocDeclStr( + void , Wrap(int width), + "This functions wraps the control's label so that each of its lines +becomes at most ``width`` pixels wide if possible (the lines are +broken at words boundaries so it might not be the case if words are +too long). If ``width`` is negative, no wrapping is done.", ""); + + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); };