From 837db46d7a4cbe46f06b324cc04fe55f83780a03 Mon Sep 17 00:00:00 2001 From: Roman Rolinsky Date: Wed, 13 Jul 2005 17:13:08 +0000 Subject: [PATCH] fix for toolbar items selection - impossible to find exact coordinates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/tree.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wxPython/wx/tools/XRCed/tree.py b/wxPython/wx/tools/XRCed/tree.py index a917f133ad..0790e2fafb 100644 --- a/wxPython/wx/tools/XRCed/tree.py +++ b/wxPython/wx/tools/XRCed/tree.py @@ -584,6 +584,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.parent, xxxToolBar): + # How to get tool from toolbar? + return parentWin.GetChildren()[0] # Otherwise get parent's object and it's child child = parentWin.GetChildren()[self.ItemIndex(item)] # Return window or sizer for sizer items -- 2.45.2