[Sugar-devel] [PATCH Implode] Create a new game immediatly
Manuel Kaufmann
humitos at gmail.com
Fri Aug 24 09:05:07 EDT 2012
A new game is created immediatly when Easy, Medium or Hard button is
pressed. This is important for touch screen.
Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
---
implodeactivity.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/implodeactivity.py b/implodeactivity.py
index c03d7fe..3e8a3f7 100644
--- a/implodeactivity.py
+++ b/implodeactivity.py
@@ -182,6 +182,7 @@ class ImplodeActivity(Activity):
def callback(source):
if source.get_active():
self._game.set_level(numeric_level)
+ self._game.new_game()
button.connect('clicked', callback)
button.set_tooltip(tooltip)
--
1.7.11.4
More information about the Sugar-devel
mailing list