Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-19 23:33:37 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-19 23:33:37 (GMT)
commitdfbd5c8397d5c3c1242c22caf51a49ec0cff1610 (patch)
treedeacfb9e66e3435f2a5bd19a9019a23f420b257a /tawindow.py
parent50d5969b25bc6b14f498e72c20a0b636a39b491f (diff)
add hoverhelp to non-Sugar toolbar
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tawindow.py b/tawindow.py
index c63061c..f252a5d 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1153,7 +1153,8 @@ class TurtleArtWindow():
except:
self.timeout_tag[0] = 0
elif spr and hasattr(spr,'type') and (spr.type == 'selector' or\
- spr.type == 'palette'):
+ spr.type == 'palette' or\
+ spr.type == 'toolbar'):
if self.timeout_tag[0] == 0:
self.timeout_tag[0] = self._do_show_popup(spr.name)
self.selected_spr = spr
@@ -1180,10 +1181,15 @@ class TurtleArtWindow():
block_name_s = SPECIAL_NAMES[block_name]
elif BLOCK_NAMES.has_key(block_name):
block_name_s = BLOCK_NAMES[block_name][0]
+ elif block_name in TOOLBAR_SHAPES:
+ block_name_s = ''
else:
block_name_s = _(block_name)
if HELP_STRINGS.has_key(block_name):
- label = block_name_s + ": " + HELP_STRINGS[block_name]
+ if block_name_s == '':
+ label = HELP_STRINGS[block_name]
+ else:
+ label = block_name_s + ": " + HELP_STRINGS[block_name]
else:
label = block_name_s
if self.running_sugar: