Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tawindow.py b/tawindow.py
index 0a51a97..b4b7ad8 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -46,6 +46,7 @@ from taproject import *
from sugar.graphics.objectchooser import ObjectChooser
from palettes import ContentInvoker
+from tahoverhelp import *
from gettext import gettext as _
class PopupHandler():
@@ -62,12 +63,15 @@ class PopupHandler():
self.table[block_name] = ContentInvoker(msg)
return self.table[block_name]
- print("no invoker for" + block_name)
+ print("no invoker for " + block_name)
return None
def _getHelpMessage(self, block_name):
- help_msg_name = "popup_help_" + block_name
- return _(help_msg_name)
+ try:
+ return (hover_dict[block_name])
+ except:
+ print("no dictionary entry for " + block_name)
+ return("")
popupHandler = PopupHandler()