diff options
Diffstat (limited to 'VideoJAM.activity/activity.py')
-rw-r--r-- | VideoJAM.activity/activity.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/VideoJAM.activity/activity.py b/VideoJAM.activity/activity.py new file mode 100644 index 0000000..107aae0 --- /dev/null +++ b/VideoJAM.activity/activity.py @@ -0,0 +1,41 @@ +#!/usr/bin/python +# -*- coding: iso-8859-1 -*- +# +# Copyright 2009 ceibalJAM! +# This file is part of Batalla Naval. +# +# Batalla Naval is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Batalla Naval is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Batalla Naval. If not, see <http://www.gnu.org/licenses/>. + +from sugar.activity.activity import Activity, ActivityToolbox +import videojam +import collaboration + +class VideoJAMActivity(Activity): + ''' Clase llamada por sugar cuando se ejecuta la actividad. + El nombre de esta clase está señalada en el archivo activity/activity.info ''' + + def __init__(self, handle): + Activity.__init__(self, handle) + + self.gamename = 'Multimedia' + + # Crea la barra de herramientas básica de Sugar + toolbox = ActivityToolbox(self) + self.set_toolbox(toolbox) + toolbox.show() + + self.collaboration = collaboration.CollaborationWrapper(self) + + # The activity is a subclass of Window, so it passses itself to the init function + videojam.init(True, self) |