From 5f2f46cc71947bd0033901ab344d7db9c43f6b92 Mon Sep 17 00:00:00 2001 From: bcorrales Date: Thu, 08 Jul 2010 01:27:57 +0000 Subject: patched problem with robot interacting with word editing (2057) --- 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): -- cgit v0.9.1