Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPootle daemon <pootle@pootle.sugarlabs.org>2013-12-10 05:30:29 (GMT)
committer Pootle daemon <pootle@pootle.sugarlabs.org>2013-12-10 05:30:29 (GMT)
commitbbea3c4817e4195008ffe47c59e266731a635bf5 (patch)
treec3e6eb3bb4d799b84741b596f1e50de8197039fd
parentfe6e0b13e617e0b0e72a85c835f4b9c8924831df (diff)
parenteb793446e007c7c9988d6dd14773935b49edfca9 (diff)
Merge branch 'master' of git.sugarlabs.org:turtleart/mainline
-rw-r--r--NEWS10
-rw-r--r--TurtleArt/tawindow.py18
2 files changed, 18 insertions, 10 deletions
diff --git a/NEWS b/NEWS
index 2823924..b02eb3b 100644
--- a/NEWS
+++ b/NEWS
@@ -4,12 +4,18 @@ ENHANCEMENTS:
* Save/restore palette settings in GConf
* Add confirmation when emptying trash in GNONE version (Alan Aguiar)
* Add load/save plugin dialog to GNOME version (Daniel Francis)
+* Add busy cursor when projects are being prepared to run
+* Reworked Duplicate Blocks warning graphic to reflect current block shapes
+* New translations
BUG FIX:
-* Fix shade block dock settings (Alan Aguiar)
-* Fix bug in empty trash (Alan Aguiar)
+* Fixed shade block dock settings (Alan Aguiar)
+* Fixed bug in empty trash (Alan Aguiar)
* Set active turtle after 'clean' in exported Python code
* Execute 'until' body once before entering loop in exported Python code
+* Fixed problem with running_blocks flag not being cleared (cause of spurious
+ "hit stop button" messages.
+* Fixed problem with errant text entry widget on run.
193
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 3c8bcdf..2aa8f89 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -3229,6 +3229,7 @@ before making changes to your program'))
debug_output('WARNING: Projects with forever blocks \
may not terminate.', False)
else:
+ self._hide_text_entry()
self.parent.get_window().set_cursor(
gtk.gdk.Cursor(gtk.gdk.WATCH))
gobject.idle_add(self.__run_stack, blk)
@@ -3831,11 +3832,8 @@ before making changes to your program'))
self._snap_to_dock()
self.drag_group = None
- def _test_number(self):
- ''' Make sure a 'number' block contains a number. '''
+ def _hide_text_entry(self):
if hasattr(self, '_text_entry'):
- bounds = self._text_buffer.get_bounds()
- text = self._text_buffer.get_text(bounds[0], bounds[1])
if self._focus_out_id is not None:
self._text_entry.disconnect(self._focus_out_id)
self._focus_out_id = None
@@ -3843,6 +3841,13 @@ before making changes to your program'))
self._text_buffer.disconnect(self._insert_text_id)
self._insert_text_id = None
self._text_entry.hide()
+
+ def _test_number(self):
+ ''' Make sure a 'number' block contains a number. '''
+ if hasattr(self, '_text_entry'):
+ bounds = self._text_buffer.get_bounds()
+ text = self._text_buffer.get_text(bounds[0], bounds[1])
+ self._hide_text_entry()
else:
text = self.selected_blk.spr.labels[0]
self._number_check(text)
@@ -3889,12 +3894,9 @@ before making changes to your program'))
def _test_string(self):
if hasattr(self, '_text_entry'):
- if self._focus_out_id is not None:
- self._text_entry.disconnect(self._focus_out_id)
- self._focus_out_id = None
bounds = self._text_buffer.get_bounds()
text = self._text_buffer.get_text(bounds[0], bounds[1])
- self._text_entry.hide()
+ self._hide_text_entry()
else:
text = self.selected_blk.spr.labels[0]
self.selected_blk.spr.set_label(text.replace('\12', RETURN))