From: Roman Rolinsky Date: Fri, 9 Sep 2005 15:47:27 +0000 (+0000) Subject: fix for toolbar highlighting (not done for main toolbar) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c00266964a70799a8e2637cff37a896004bd66b3 fix for toolbar highlighting (not done for main toolbar) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/tools/XRCed/tree.py b/wxPython/wx/tools/XRCed/tree.py index 6719d5c507..f11aa795c8 100644 --- a/wxPython/wx/tools/XRCed/tree.py +++ b/wxPython/wx/tools/XRCed/tree.py @@ -630,8 +630,11 @@ class XML_Tree(wxTreeCtrl): # Top-level sizer? return window's sizer if xxx.isSizer and isinstance(parentWin, wxWindow): return parentWin.GetSizer() + elif isinstance(xxx, xxxToolBar): + # If it's the main toolbar, we can't really select it + if xxx.parent.__class__ == xxxFrame: return None elif isinstance(xxx.parent, xxxToolBar): - # How to get tool from toolbar? + # Select complete toolbar return parentWin elif isinstance(xxx.parent, xxxStdDialogButtonSizer): # This sizer returns non-existing children