From e1a19f1d79b08f8dd932b3bd593fc2e0e49ba2ba Mon Sep 17 00:00:00 2001 From: yaderv Date: Tue, 08 Mar 2011 17:12:56 +0000 Subject: completed button --- (limited to 'archivo.py') diff --git a/archivo.py b/archivo.py index 45294de..23dff84 100644 --- a/archivo.py +++ b/archivo.py @@ -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 -- cgit v0.9.1