]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls2.i
Fixed DSM
[wxWidgets.git] / wxPython / src / controls2.i
index 85334a3ddf939557fc71c9abec00aff3ca3edbaf..37671c76bc7f04704aa69035dc47f2a9d707c7cb 100644 (file)
@@ -358,7 +358,8 @@ public:
     wxListItem    m_item;
 %readwrite
 
-    int GetCode();
+    int GetKeyCode();
+    %pragma(python) addtoclass = "GetCode = GetKeyCode"
     long GetIndex();
     int GetColumn();
     wxPoint GetPoint();
@@ -739,6 +740,17 @@ public:
             return self->SortItems(wxPyListCtrl_SortItems, (long)func);
         }
     }
+
+
+    %addmethods {
+        wxWindow* GetMainWindow() {
+        #ifdef __WXMSW__
+            return self;
+        #else
+            return (wxWindow*)self->m_mainWin;
+        #endif
+        }
+    }
 };
 
 
@@ -1042,7 +1054,8 @@ public:
     wxTreeItemId GetOldItem();
     wxPoint GetPoint();
     const wxKeyEvent& GetKeyEvent();
-    int GetCode();
+    int GetKeyCode();
+    %pragma(python) addtoclass = "GetCode = GetKeyCode"
     const wxString& GetLabel();
 };