Add GetTopLevelParent convenience function

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-03-05 19:08:10 +00:00
parent a5ef3ff1d9
commit 969f4438ef
7 changed files with 139 additions and 1 deletions

View File

@@ -9097,6 +9097,14 @@ class Window(EvtHandler):
"""
return _core_.Window_GetGrandParent(*args, **kwargs)
def GetTopLevelParent(*args, **kwargs):
"""
GetTopLevelParent(self) -> Window
Returns the first frame or dialog in this window's parental hierarchy.
"""
return _core_.Window_GetTopLevelParent(*args, **kwargs)
def IsTopLevel(*args, **kwargs):
"""
IsTopLevel(self) -> bool
@@ -10393,6 +10401,7 @@ class Window(EvtHandler):
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
ForegroundColour = property(GetForegroundColour,SetForegroundColour,doc="See `GetForegroundColour` and `SetForegroundColour`")
GrandParent = property(GetGrandParent,doc="See `GetGrandParent`")
TopLevelParent = property(GetTopLevelParent,doc="See `GetTopLevelParent`")
Handle = property(GetHandle,doc="See `GetHandle`")
HelpText = property(GetHelpText,SetHelpText,doc="See `GetHelpText` and `SetHelpText`")
Id = property(GetId,SetId,doc="See `GetId` and `SetId`")