Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlfonso <Poncho@localhost.localdomain>2010-05-21 12:20:40 (GMT)
committer Alfonso <Poncho@localhost.localdomain>2010-05-21 12:20:40 (GMT)
commit40e1f3cd58ef8c2d9278dcc8c2b4bdc52d826a4c (patch)
tree89ae92b631b9d2a6cf009650f95d160820a04d0d
parent3d5c7b232657c06db1c85b9fe7093c4ccc4c54b1 (diff)
Reindent with spaces
-rwxr-xr-xactivity.py136
1 files changed, 68 insertions, 68 deletions
diff --git a/activity.py b/activity.py
index e8714ed..76c75c1 100755
--- a/activity.py
+++ b/activity.py
@@ -4,78 +4,78 @@ import logging
import gtk
class SugarBrainActivity(activity.Activity):
- def __init__(self, handle):
- activity.Activity.__init__(self, handle)
- toolbox=activity.ActivityToolbox(self)
- toolbox.show()
- self.set_toolbox(toolbox)
- #El Layout inicial
- l1 = gtk.VBox()
+ def __init__(self, handle):
+ activity.Activity.__init__(self, handle)
+ toolbox=activity.ActivityToolbox(self)
+ toolbox.show()
+ self.set_toolbox(toolbox)
+ #El Layout inicial
+ l1 = gtk.VBox()
- #encabezado = gtk.Label(' El encabezado, categoria y dificultad')
- #encabezado.show()
+ #encabezado = gtk.Label(' El encabezado, categoria y dificultad')
+ #encabezado.show()
- #Preparando el menu
- menu = gtk.HBox()
- alineacion = gtk.Alignment(0.5, 1, 0.5, 1)
- categoriaL = gtk.Label("Categoria:")
- categoriaL.show()
- categorias = gtk.combo_box_new_text()
- categorias.insert_text(0,"Todas")
- categorias.insert_text(1,"Matematica")
- categorias.insert_text(2,"Historia")
- categorias.insert_text(3,"Castellano")
- categorias.set_active(0)
- categorias.show()
- dificultadL = gtk.Label("Dificultad:")
- dificultadL.show()
- dificultades = gtk.combo_box_new_text()
- dificultades.insert_text(0,"nivel 1")
- dificultades.insert_text(1,"nivel 2")
- dificultades.insert_text(2, "nivel 3")
- dificultades.set_active(0)
- dificultades.show()
- iniciarB = gtk.Button("Inicio")
- iniciarB.show()
- finalizarB = gtk.Button("Terminar")
- finalizarB.show()
- menu.pack_start(alineacion)
- menu.pack_start(categoriaL)
- menu.pack_start(categorias)
- menu.pack_start(dificultadL)
- menu.pack_start(dificultades)
- menu.pack_start(iniciarB)
- menu.pack_start(finalizarB)
- menu.show()
+ #Preparando el menu
+ menu = gtk.HBox()
+ alineacion = gtk.Alignment(0.5, 1, 0.5, 1)
+ categoriaL = gtk.Label("Categoria:")
+ categoriaL.show()
+ categorias = gtk.combo_box_new_text()
+ categorias.insert_text(0,"Todas")
+ categorias.insert_text(1,"Matematica")
+ categorias.insert_text(2,"Historia")
+ categorias.insert_text(3,"Castellano")
+ categorias.set_active(0)
+ categorias.show()
+ dificultadL = gtk.Label("Dificultad:")
+ dificultadL.show()
+ dificultades = gtk.combo_box_new_text()
+ dificultades.insert_text(0,"nivel 1")
+ dificultades.insert_text(1,"nivel 2")
+ dificultades.insert_text(2, "nivel 3")
+ dificultades.set_active(0)
+ dificultades.show()
+ iniciarB = gtk.Button("Inicio")
+ iniciarB.show()
+ finalizarB = gtk.Button("Terminar")
+ finalizarB.show()
+ menu.pack_start(alineacion)
+ menu.pack_start(categoriaL)
+ menu.pack_start(categorias)
+ menu.pack_start(dificultadL)
+ menu.pack_start(dificultades)
+ menu.pack_start(iniciarB)
+ menu.pack_start(finalizarB)
+ menu.show()
- #contenedor = gtk.EventBox()
- #imagen = gtk.Image()
- #imagen.setFromFile("script01.svg")
- #imagen.show()
-
- #respuesta
- respuesta = gtk.HBox()
- respL = gtk.Label("Respuesta:")
- respL.show()
- respT = gtk.Entry()
- respT.show()
- respB = gtk.Button("Respuesta")
- respB.show()
- sgteB = gtk.Button("Siguiente")
- sgteB.show()
- respuesta.pack_start(respL, False, False, 0)
- respuesta.pack_start(respT)
- respuesta.pack_start(respB)
- respuesta.pack_start(sgteB)
- respuesta.show()
+ #contenedor = gtk.EventBox()
+ #imagen = gtk.Image()
+ #imagen.setFromFile("script01.svg")
+ #imagen.show()
+
+ #respuesta
+ respuesta = gtk.HBox()
+ respL = gtk.Label("Respuesta:")
+ respL.show()
+ respT = gtk.Entry()
+ respT.show()
+ respB = gtk.Button("Respuesta")
+ respB.show()
+ sgteB = gtk.Button("Siguiente")
+ sgteB.show()
+ respuesta.pack_start(respL, False, False, 0)
+ respuesta.pack_start(respT)
+ respuesta.pack_start(respB)
+ respuesta.pack_start(sgteB)
+ respuesta.show()
+ #agrupo todo
+ #l1.pack_start(encabezado)
+ l1.pack_start(menu, False, False, 4)
+ l1.pack_start(respuesta, False, False, 360)
+ #l1.pack_start(imagen)
- #agrupo todo
- #l1.pack_start(encabezado)
- l1.pack_start(menu, False, False, 4)
- l1.pack_start(respuesta, False, False, 360)
- #l1.pack_start(imagen)
+ l1.show()
+ self.set_canvas(l1)
- l1.show()
- self.set_canvas(l1)