blob: 107aae0f94f114ecbc95e447b9092662585b5fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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)
|