Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcorrales <bcorrales@bcorrales-laptop.(none)>2010-07-08 01:27:57 (GMT)
committer bcorrales <bcorrales@bcorrales-laptop.(none)>2010-07-08 01:27:57 (GMT)
commit5f2f46cc71947bd0033901ab344d7db9c43f6b92 (patch)
tree6b53e89511cf8110e35297077e7242a08ca28153
parentc8b608536ab28a28101a655e16992e0c3ea5eb36 (diff)
patched problem with robot interacting with word editing (2057)HEADmaster
-rw-r--r--VisualMatchActivity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/VisualMatchActivity.py b/VisualMatchActivity.py
index 4979dab..d18938c 100644
--- a/VisualMatchActivity.py
+++ b/VisualMatchActivity.py
@@ -153,7 +153,7 @@ class VisualMatchActivity(activity.Activity):
self.vmw.robot = False
self.robot_button.set_tooltip(_('Play with the computer.'))
self.robot_button.set_icon('robot-off')
- else:
+ elif not self.vmw.editing_word_list:
self.vmw.robot = True
self.robot_button.set_tooltip(
_('Stop playing with the computer.'))
@@ -204,6 +204,8 @@ class VisualMatchActivity(activity.Activity):
""" Edit the word list. """
self.vmw.editing_word_list = True
self.vmw.edit_word_list()
+ if self.vmw.robot:
+ self._robot_cb(button)
'''
def _write_to_journal_cb(self, button, path):