diff options
author | Joe Lee <joe@jotaro.com> | 2008-03-30 02:07:09 (GMT) |
---|---|---|
committer | Joe Lee <joe@jotaro.com> | 2008-03-30 02:07:09 (GMT) |
commit | d24881f4add199245a25f1794c1df8fe885d7ffc (patch) | |
tree | aa8d2863bb41190902a8b8c026f0faed73eff005 | |
parent | b6c886c62d31eb4133044550d2cb3359bb16aeab (diff) |
Disabled undo after winning.
-rw-r--r-- | implodegame.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/implodegame.py b/implodegame.py index 7375fe2..c3b2c9a 100644 --- a/implodegame.py +++ b/implodegame.py @@ -184,6 +184,9 @@ class ImplodeGame(gtk.EventBox): def _init_win_state(self): self._grid.set_win_draw_flag(True) + # Clear the undo stack so that the undo/redo buttons do nothing after + # winning. + self._undoStack = [] def _init_lose_state(self): pass |