From: Robin Dunn Date: Tue, 8 Mar 2005 01:47:45 +0000 (+0000) Subject: Workaround for toolbartool tooltip not getting written to the XRC file. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a3c8bbc1b46d4101f1a620f2d7a2e85381d8bbe0 Workaround for toolbartool tooltip not getting written to the XRC file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/tools/XRCed/panel.py b/wxPython/wx/tools/XRCed/panel.py index 466af6f258..902c0612f5 100644 --- a/wxPython/wx/tools/XRCed/panel.py +++ b/wxPython/wx/tools/XRCed/panel.py @@ -201,7 +201,10 @@ class ParamPage(wxPanel): xxx.params[param] = xxxParam(elem) # Find place to put new element: first present element after param found = False - paramStyles = xxx.allParams + xxx.styles + if xxx.hasStyle: + paramStyles = xxx.allParams + xxx.styles + else: + paramStyles = xxx.allParams for p in paramStyles[paramStyles.index(param) + 1:]: # Content params don't have same type if xxx.params.has_key(p) and p != 'content':