Fixed Cut command, added support for MenuBar inside Frame/Dialog.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2006-02-16 17:19:39 +00:00
parent eb3efe0d4b
commit 6165053b84
4 changed files with 14 additions and 6 deletions

View File

@@ -653,9 +653,9 @@ class XML_Tree(wxTreeCtrl):
# Top-level sizer? return window's sizer
if xxx.isSizer and isinstance(parentWin, wxWindow):
return parentWin.GetSizer()
elif isinstance(xxx, xxxStatusBar): return None
elif isinstance(xxx, xxxToolBar):
# If it's the main toolbar, we can't really select it
elif xxx.__class__ in [xxxStatusBar, xxxMenu, xxxMenuItem, xxxSeparator]: return None
elif xxx.__class__ in [xxxToolBar, xxxMenuBar]:
# If it's the main toolbar or menubar, we can't really select it
if xxx.parent.__class__ == xxxFrame: return None
elif isinstance(xxx.parent, xxxToolBar):
# Select complete toolbar