Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarClient/gui/ContenedorTareas.py
diff options
context:
space:
mode:
Diffstat (limited to 'EjercitarClient/gui/ContenedorTareas.py')
-rw-r--r--EjercitarClient/gui/ContenedorTareas.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/EjercitarClient/gui/ContenedorTareas.py b/EjercitarClient/gui/ContenedorTareas.py
new file mode 100644
index 0000000..ff60a10
--- /dev/null
+++ b/EjercitarClient/gui/ContenedorTareas.py
@@ -0,0 +1,36 @@
+'''
+Created on Feb 4, 2013
+
+@author: Samu
+'''
+import gtk
+from gui.Ejercitario import Ejercitario
+
+class ContenedorTareas(gtk.HBox):
+
+ # This is a callback function. The data arguments are ignored
+ # in this example. More on callbacks below.
+
+
+ def __init__(self, id_alumno, id_tarea, descripcion, ventana_padre, vista_temas, cliente_WS):
+ # create a new window
+ super(ContenedorTareas, self).__init__()
+ self.ventana_padre = ventana_padre
+ self.vista_temas = vista_temas
+ self.cliente_WS = cliente_WS
+ self.id_alumno = id_alumno
+ self.id_tarea = id_tarea
+
+ label_descripcion = gtk.Label(descripcion)
+
+ boton = gtk.Button("Comenzar")
+ boton.connect("clicked", self.__comenzar_cb)
+
+ self.add(label_descripcion)
+ self.add(boton)
+
+ def __comenzar_cb(self, boton):
+ self.ventana_padre.remove(self.vista_temas)
+ ejercitario = Ejercitario(self.cliente_WS, self.id_tarea, self.id_alumno)
+ self.ventana_padre.add (ejercitario)
+ \ No newline at end of file