X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/562ecc31436845f22982493b398137a3c21ab4a4..b4fd164d9c9f7f7e98210f46d9d89d0b435cfcdc:/wxPython/src/_window.i diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index 668b6d5264..8861980054 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -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); + } +%} + //--------------------------------------------------------------------------- //---------------------------------------------------------------------------