]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_window.i
Adding accessor methods for URL and Title, and another revision of the window sizing...
[wxWidgets.git] / wxPython / src / _window.i
index 668b6d526433eec07bf06b75c37a121a4022c0a4..8861980054764c563297f19fe9c8ec6a1b6a96d8 100644 (file)
@@ -2068,6 +2068,20 @@ wxWindow* wxFindWindowByLabel( const wxString& label,
     }
 %}
 
+//---------------------------------------------------------------------------
+
+DocStr(GetTopLevelWindows,
+"Returns a list of the the application's top-level windows, (frames,
+dialogs, etc.)  NOTE: Currently this is a copy of the list maintained
+by wxWidgets, and so it is only valid as long as no top-level windows
+are closed or new top-level windows are created.
+", "");
+%inline %{
+    PyObject* GetTopLevelWindows() {
+        return wxPy_ConvertList(&wxTopLevelWindows);
+    }
+%}
+
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------