Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Jhonn Aguiar Schwyn <alanjas@hotmail.com>2014-04-01 12:25:36 (GMT)
committer Walter Bender <walter@sugarlabs.org>2014-04-01 12:25:36 (GMT)
commit0c2bb4763b68ae5aab7e522996e9469259afb950 (patch)
tree8a4812ae5a49b190551d0d3bdd1392c0eddf06ce
parentbdc894ac34d947a80dbc473cbb5519a68a8f6a3b (diff)
fix problem with help status button infinite loop
-rwxr-xr-xturtleblocks.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index 1a75b67..0cabd37 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -244,6 +244,7 @@ return %s(self)" % (p, P, P)
if hasattr(self, 'client'):
if self.client.get_int(self._HOVER_HELP) == 1:
self.tw.no_help = True
+ self.hover.set_active(False)
self._do_hover_help_off_cb()
if not self.client.get_int(self._COORDINATE_SCALE) in [0, 1]:
self.tw.coord_scale = 1
@@ -746,7 +747,7 @@ Would you like to save before quitting?'))
def _do_toggle_hover_help_cb(self, button):
''' Toggle hover help on/off '''
- self.tw.no_help = not self.tw.no_help
+ self.tw.no_help = not(button.get_active())
if self.tw.no_help:
self._do_hover_help_off_cb()
else:
@@ -754,7 +755,6 @@ Would you like to save before quitting?'))
def _do_hover_help_on_cb(self):
''' Turn hover help on '''
- self.hover.set_active(True)
if hasattr(self, 'client'):
self.client.set_int(self._HOVER_HELP, 0)
@@ -763,7 +763,6 @@ Would you like to save before quitting?'))
self.tw.last_label = None
if self.tw.status_spr is not None:
self.tw.status_spr.hide()
- self.hover.set_active(False)
if hasattr(self, 'client'):
self.client.set_int(self._HOVER_HELP, 1)