Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chess.py
diff options
context:
space:
mode:
Diffstat (limited to 'chess.py')
-rw-r--r--chess.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/chess.py b/chess.py
index 30a1369..d09f9cb 100644
--- a/chess.py
+++ b/chess.py
@@ -133,6 +133,7 @@ class Gnuchess():
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
+ self._activity.timer.set_sensitive(False)
if my_move == HINT:
level = 'hard\nbook on\n' # may as well get a good hint
@@ -260,6 +261,11 @@ class Gnuchess():
self._flash_tile([self._xy_to_file_and_rank(
self.black[4].get_xy())])
else:
+ if self._activity.timer.get_text().isdigit() and \
+ (self._activity.time_interval >= 2):
+ self._activity.stopwatch(self._activity.time_interval,
+ self._activity.alert_time)
+
if len(self.move_list) % 2 == 0:
self._activity.status.set_label(_("It is White's move."))
else: