]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/controls.i
Added calendar contributed by Lorne White
[wxWidgets.git] / utils / wxPython / src / controls.i
index 5e92ebe7adce372d23a8fba53e0c5469b1ee03f8..57875bd04948308fad299e202f112e6ef63d9f2a 100644 (file)
 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');
+        }
+    }
 };
 
 //----------------------------------------------------------------------