]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls2.i
Added accessor for the main window in generic wxListCtrl. In wxMSW
[wxWidgets.git] / wxPython / src / controls2.i
index 92c8fe6010456466e5dc2fbdc93d7e9232b9e0d1..a4af34c4bc808bdec25684ec20690949e8f27de2 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();
@@ -444,6 +445,7 @@ public:
     %addmethods {
         %new wxListItem* GetColumn(int col) {
             wxListItem item;
+            item.SetMask(0xFFFF);
             if (self->GetColumn(col, item))
                 return new wxListItem(item);
             else
@@ -738,6 +740,17 @@ public:
             return self->SortItems(wxPyListCtrl_SortItems, (long)func);
         }
     }
+
+
+    %addmethods {
+        wxWindow* GetMainWindow() {
+        #ifdef __WXMSW__
+            return self;
+        #else
+            return (wxWindow*)m_mainWin;
+        #endif
+        }
+    }
 };
 
 
@@ -1041,7 +1054,8 @@ public:
     wxTreeItemId GetOldItem();
     wxPoint GetPoint();
     const wxKeyEvent& GetKeyEvent();
-    int GetCode();
+    int GetKeyCode();
+    %pragma(python) addtoclass = "GetCode = GetKeyCode"
     const wxString& GetLabel();
 };