Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/window.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-01-07 16:50:00 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-07 16:50:00 (GMT)
commit5e587dc87a4a9316f9ed549885097f76e5d4c443 (patch)
treee99af4cc2ce9124bb6c70bf044493b258b6f3c33 /window.py
parentb6c375e9eabd8c4ce03c3bfccb8905d822de92ca (diff)
animate matches at end of game play
Diffstat (limited to 'window.py')
-rw-r--r--window.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/window.py b/window.py
index eb32af2..7544094 100644
--- a/window.py
+++ b/window.py
@@ -192,6 +192,7 @@ def _game_over(vmw):
set_label(vmw,"clock","")
set_label(vmw,"status","%s (%d:%02d)" %
(_("Game over"),int(vmw.total_time/60),int(vmw.total_time%60)))
+ _show_matches(vmw, 0)
return True
return False
@@ -345,6 +346,15 @@ def _timer_reset(vmw):
_counter(vmw)
#
+# Show all the matches
+#
+def _show_matches(vmw, i):
+ if i < vmw.matches:
+ for j in range(3):
+ vmw.grid.display_match(vmw.match_list[i*3+j], j)
+ vmw.match_timeout_id = gobject.timeout_add(2000,_show_matches,vmw,i+1)
+
+#
# Check to see whether there are any matches on the board
#
def _find_a_match(vmw, robot_match=False):