diff options
author | yaderv <yajosev@gmail.com> | 2011-03-08 17:12:56 (GMT) |
---|---|---|
committer | yaderv <yajosev@gmail.com> | 2011-03-08 17:12:56 (GMT) |
commit | e1a19f1d79b08f8dd932b3bd593fc2e0e49ba2ba (patch) | |
tree | c9dbcbb6fcde6ebc92fb0238ff53290e8f615a1b /archivo.py | |
parent | 9f5252f2bf9b05b29fbaaf3d70863d726939c2fa (diff) |
completed button
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -106,7 +106,7 @@ def guardar_efemeride(path, file_name): file_new.close() archivo.close() -def guardar_dato(indice, contenido, categoria, entero_cat, bolean, bolean_2, path, indice_lista=False): +def guardar_dato(indice, contenido, categoria, entero_cat, bolean, progre, path, indice_lista=False): '''save the content in a file, add the content to a dictionary->list''' color_categoria = ['#6E92FF', '#82FF5F', '#FFE251', '#FF7D7D', '#FFFFFF'] @@ -120,8 +120,10 @@ def guardar_dato(indice, contenido, categoria, entero_cat, bolean, bolean_2, pat else: prioridad = None - if bolean_2: + if progre is 1: progreso = gtk.STOCK_YES + elif progre is 2: + progreso = gtk.STOCK_APPLY else: progreso = None |