X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39c3fa09a936e6a3f386a67c0fc7cfd84df0168..9e477492e29e03c02827b1e42a16cb09a13f5149:/wxPython/src/_statctrls.i diff --git a/wxPython/src/_statctrls.i b/wxPython/src/_statctrls.i index 9c2df37ac9..240cc73877 100644 --- a/wxPython/src/_statctrls.i +++ b/wxPython/src/_statctrls.i @@ -37,7 +37,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPyStaticBoxNameStr); - %name(PreStaticBox)wxStaticBox(); + %RenameCtor(PreStaticBox, wxStaticBox()); // Turn it back on again %typemap(out) wxStaticBox* { $result = wxPyMake_wxObject($1, $owner); } @@ -70,7 +70,7 @@ public: const wxSize &size = wxDefaultSize, long style = wxLI_HORIZONTAL, const wxString& name = wxPyStaticTextNameStr); - %name(PreStaticLine)wxStaticLine(); + %RenameCtor(PreStaticLine, wxStaticLine()); bool Create( wxWindow *parent, wxWindowID id=-1, const wxPoint &pos = wxDefaultPosition, @@ -105,7 +105,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPyStaticTextNameStr); - %name(PreStaticText)wxStaticText(); + %RenameCtor(PreStaticText, wxStaticText()); bool Create(wxWindow* parent, wxWindowID id=-1, const wxString& label = wxPyEmptyString, @@ -114,6 +114,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); }; @@ -134,7 +142,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPyStaticBitmapNameStr); - %name(PreStaticBitmap)wxStaticBitmap(); + %RenameCtor(PreStaticBitmap, wxStaticBitmap()); bool Create(wxWindow* parent, wxWindowID id=-1, const wxBitmap& bitmap = wxNullBitmap,