]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wx.GetTopLevelWindows() function which returns a copy of the
authorRobin Dunn <robin@alldunn.com>
Wed, 6 Apr 2005 04:15:36 +0000 (04:15 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 6 Apr 2005 04:15:36 +0000 (04:15 +0000)
list of top-level windows that currently exist in the application.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/docs/CHANGES.txt
wxPython/src/_window.i

index 4f20b2b8882000be4a6694c764d85529bcd42a40..8ead239ebb801fdea153e50e426ebdaae7e01ba6 100644 (file)
@@ -79,6 +79,8 @@ affecting the label.
 wxMSW: Fixed missing EVT_RIGHT_DOWN and EVT_TREE_ITEM_RIGHT_CLICK
 events in a wx.TreeCtrl.
 
+Added wx.GetTopLevelWindows() function which returns a copy of the
+list of top-level windows that currently exist in the application.
 
 
 
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);
+    }
+%}
+
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------