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
This commit is contained in:
parent
6ac94a4806
commit
837db46d7a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user