[Sugar-devel] [PATCH Implode] Create a new game immediatly

Manuel Quiñones manuq at laptop.org
Fri Aug 24 10:57:18 EDT 2012


Thanks humitos, pushed 7d3e66e1 .

2012/8/24 Manuel Kaufmann <humitos at gmail.com>:
> 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
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



-- 
.. manuq ..


More information about the Sugar-devel mailing list