diff options
author | pamarilla <pj.amarilla@gmail.com> | 2013-01-27 18:16:48 (GMT) |
---|---|---|
committer | pamarilla <pj.amarilla@gmail.com> | 2013-01-27 18:16:48 (GMT) |
commit | 708cfba8c104932738b31dc69e7637c754f5d7de (patch) | |
tree | e7732d49eff6d49c8c9da3748e100371237f2bf7 | |
parent | aa64b447c6ab864eaa20786611276d6d3f4e43e2 (diff) |
la matriz cargada con las opciones del config.ini
-rw-r--r-- | config.ini | 2 | ||||
-rw-r--r-- | expresar.py | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,7 @@ #Expresar [initialize] -items = 5 +items = 16 [seccion0] name = comer diff --git a/expresar.py b/expresar.py index 7ddb119..aa66208 100644 --- a/expresar.py +++ b/expresar.py @@ -21,7 +21,6 @@ class MyGUI: self.listaSecciones = [] parser(self.listaSecciones) - print self.listaSecciones[1] self.lenghtSecciones = int(math.sqrt(len(self.listaSecciones))) self.hbox = gtk.HBox() @@ -44,12 +43,15 @@ class MyGUI: fin_right = 1 inicio_top = 0 fin_bottom = 1 + indiceListaSecciones = 0 for colu in range(LENGHT): for fila in range(LENGHT): - boton = gtk.Button(str(fila)+"-"+str(colu)) + #boton = gtk.Button(str(fila)+"-"+str(colu)) + boton = gtk.Button(self.listaSecciones[indiceListaSecciones][1]) boton.connect('key-press-event', self.__pressButton_count) table.attach(boton, inicio_left, fin_right, inicio_top, fin_bottom) boton.show() + indiceListaSecciones = indiceListaSecciones + 1 inicio_top = inicio_top + 1 fin_bottom = fin_bottom + 1 |