]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/misc2.i
Fixed wxWindowCreateEvent and wxWindowDestroyEvent to set m_eventType
[wxWidgets.git] / utils / wxPython / src / misc2.i
index 8ca4431d38f6260fd6cb1232492d80a6dc62334f..6f1d507e0ae68def8ce99d3d218cf4634af41cb5 100644 (file)
@@ -320,6 +320,26 @@ public:
         wxFontEncoding encoding = wxFONTENCODING_SYSTEM, // all
         bool fixedWidthOnly = FALSE);
     bool EnumerateEncodings(const char* facename = "");
+
+    //wxArrayString* GetEncodings();
+    //wxArrayString* GetFacenames();
+    %addmethods {
+        PyObject* GetEncodings() {
+            wxArrayString* arr = self->GetEncodings();
+            PyObject* list = PyList_New(0);
+            for (size_t x=0; x<arr->GetCount(); x++)
+                PyList_Append(list, PyString_FromString((*arr)[x]));
+            return list;
+        }
+
+        PyObject* GetFacenames() {
+            wxArrayString* arr = self->GetFacenames();
+            PyObject* list = PyList_New(0);
+            for (size_t x=0; x<arr->GetCount(); x++)
+                PyList_Append(list, PyString_FromString((*arr)[x]));
+            return list;
+        }
+    }
 };
 
 //----------------------------------------------------------------------
@@ -333,6 +353,7 @@ public:
 //----------------------------------------------------------------------
 
 void wxPostEvent(wxEvtHandler *dest, wxEvent& event);
+void wxWakeUpIdle();
 
 //----------------------------------------------------------------------
 //----------------------------------------------------------------------