Added wx.GetTopLevelWindows() function which returns a copy of the
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
This commit is contained in:
parent
b508ae3a7a
commit
791fbf3481
@ -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.
|
||||
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user