diff options
author | José Darío Giménez <jgimenez@localhost.localdomain> | 2010-05-24 12:06:10 (GMT) |
---|---|---|
committer | José Darío Giménez <jgimenez@localhost.localdomain> | 2010-05-24 12:06:10 (GMT) |
commit | 2130a90777f47bfdf4f56d449d32eaaa38d8b6ba (patch) | |
tree | 80a654809e99fa80c445c7356beb74f415a661a2 /Toolbar.py | |
parent | 40e1f3cd58ef8c2d9278dcc8c2b4bdc52d826a4c (diff) |
Change Activity/Project Structure to be more likely to Design Structure
Diffstat (limited to 'Toolbar.py')
-rw-r--r-- | Toolbar.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Toolbar.py b/Toolbar.py new file mode 100644 index 0000000..4f38195 --- /dev/null +++ b/Toolbar.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +import gtk +import Controller +class Toolbar(): + def __init__(self,contoller): + toolbox=activity.ActivityToolbox(controller.activity) + toolbox.show() + controller.activity.set_toolbox(toolbox) + #El Layout inicial + + #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() + return menu |