]> 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 281e04fbd4f2b347350cdf2802dd59980643cd77..a4af34c4bc808bdec25684ec20690949e8f27de2 100644 (file)
@@ -740,6 +740,17 @@ public:
             return self->SortItems(wxPyListCtrl_SortItems, (long)func);
         }
     }
             return self->SortItems(wxPyListCtrl_SortItems, (long)func);
         }
     }
+
+
+    %addmethods {
+        wxWindow* GetMainWindow() {
+        #ifdef __WXMSW__
+            return self;
+        #else
+            return (wxWindow*)m_mainWin;
+        #endif
+        }
+    }
 };
 
 
 };