Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/PathsActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-09 23:21:02 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-09 23:21:02 (GMT)
commitc417a135e2003b316565d339a39e739bb07bc2b6 (patch)
tree81dbc0500250fe2d2597447d57257b41fcfa724a /PathsActivity.py
parent70e08822d4c7734dc2c0531276035772f64e0caa (diff)
fixed bugs in restarting robot play
Diffstat (limited to 'PathsActivity.py')
-rw-r--r--PathsActivity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/PathsActivity.py b/PathsActivity.py
index 45053a5..ba78dac 100644
--- a/PathsActivity.py
+++ b/PathsActivity.py
@@ -151,7 +151,7 @@ class PathsActivity(activity.Activity):
_('Start a new game.'),
self._new_game_cb, toolbar)
- self._robot_button = _button_factory('robot-off',
+ self.robot_button = _button_factory('robot-off',
_('Play with the computer.'),
self._robot_cb, toolbar)
@@ -185,7 +185,7 @@ class PathsActivity(activity.Activity):
''' Reset robot icon and status '''
self._game.playing_with_robot = status
self._game.grid.set_robot_status(status)
- self._robot_button.set_icon(icon)
+ self.robot_button.set_icon(icon)
def write_file(self, file_path):
""" Write the grid status to the Journal """