X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc17753ff64b7178f5e184d4d7cb72f4508977b1..944930d5f525ffa2d10b7cefb1ecacaf1e95275c:/utils/wxPython/src/controls.i?ds=inline diff --git a/utils/wxPython/src/controls.i b/utils/wxPython/src/controls.i index 5e92ebe7ad..57875bd049 100644 --- a/utils/wxPython/src/controls.i +++ b/utils/wxPython/src/controls.i @@ -51,6 +51,10 @@ wxValidator wxPyDefaultValidator; // Non-const default because of SWIG %} +%readonly +wxValidator wxDefaultValidator; +%readwrite + //---------------------------------------------------------------------- class wxControl : public wxWindow { @@ -287,6 +291,8 @@ public: } } + void InsertItems(int LCOUNT, wxString* LIST, int pos); + wxString GetString(int n); wxString GetStringSelection(); int Number(); @@ -369,6 +375,14 @@ public: bool CanUndo(); void GetSelection(long* OUTPUT, long* OUTPUT); bool IsEditable(); + void Undo(); + void Redo(); + + %addmethods { + void write(const wxString& text) { + self->AppendText(text + '\n'); + } + } }; //----------------------------------------------------------------------