blob: e69d6cdb3a9d06cba54b823a71e61d50120f3c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# -*- coding: utf-8 -*-
from sugar.activity.activity import Activity, ActivityToolbox
from fractionpresentation import FractionPresentation
class FraccionesActivity(Activity):
""" Clase principal cuando la aplicacion corre como actividad dentro de Sugar """
def __init__(self, handle, *args, **kwargs):
super(FraccionesActivity, self).__init__(handle, *args, **kwargs)
self.gamename = "Fracciones"
# barra de herramientas de Sugar
toolbox = ActivityToolbox(self)
self.set_toolbox(toolbox)
toolbox.show()
self.set_canvas(FractionPresentation())
self.show_all()
|