From 853e8e625ab491c73b258ffcb066b70f0daf4da8 Mon Sep 17 00:00:00 2001 From: Stephen Watson Date: Sun, 21 Nov 2004 13:28:45 +0000 Subject: [PATCH] Use only text nodes when getting the tool tip from Options.xml git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/ROX-Lib2@3720 66de3db3-b00d-0410-b41b-f4738ad19bea --- Help/Changes | 5 +++++ python/rox/OptionsBox.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Help/Changes b/Help/Changes index bf32f68..be9755b 100644 --- a/Help/Changes +++ b/Help/Changes @@ -3,6 +3,11 @@ by Thomas Leonard http://rox.sourceforge.net +21-Nov-2004 +~~~~~~~~~~~ +Bugfix: Use only text nodes when getting the tool tip from the Options.xml + file (Stephen Watson). + 22-Oct-2004 ~~~~~~~~~~~ Bugfix: Theme subdirectories are separated by ',' not ';' (reported by diff --git a/python/rox/OptionsBox.py b/python/rox/OptionsBox.py index 22aef4e..74e9a6c 100644 --- a/python/rox/OptionsBox.py +++ b/python/rox/OptionsBox.py @@ -328,7 +328,7 @@ class OptionsBox(g.Dialog): def may_add_tip(self, widget, node): """If 'node' contains any text, use that as the tip for 'widget'.""" if node.childNodes: - data = ''.join([n.nodeValue for n in node.childNodes]).strip() + data = ''.join([n.nodeValue for n in node.childNodes if n.nodeType == Node.TEXT_NODE]).strip() else: data = None if data: -- 2.11.4.GIT