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:
@@ -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`")
|
||||
|
Reference in New Issue
Block a user