Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/calendario.py
diff options
context:
space:
mode:
authorYader Velásquez <yajosev@gmail.com>2011-01-27 23:16:22 (GMT)
committer Yader Velásquez <yajosev@gmail.com>2011-01-27 23:16:22 (GMT)
commitaedfcde550654c26f811fb46860fc1e401a41b6c (patch)
tree3204522cd5c3ce480ba3b0ddf724971e45dc0ea8 /calendario.py
parent252e895433b6b3addc223dae299abd440b74fb80 (diff)
new icon, change has_key for in
Diffstat (limited to 'calendario.py')
-rw-r--r--calendario.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendario.py b/calendario.py
index 8b00aeb..2b33a03 100644
--- a/calendario.py
+++ b/calendario.py
@@ -86,7 +86,7 @@ class CalendarioActivity(activity.Activity):
#ephemeris files
if comprobar_efemeride(self.path):
self.texto = abrir_efemeride(self.path)
- if self.texto.has_key(self.fecha_normal.fecha_especial()):
+ if self.fecha_normal.fecha_especial() in self.texto:
self.buffer.set_text(self.texto[self.fecha_normal.fecha_especial()])
else:
@@ -180,6 +180,7 @@ class CalendarioActivity(activity.Activity):
self.contenedor_h.show_all()
self.archivo.show_all()
+ ############################# Callbacks and methods###########################
def _check_cb(self, widget, data=None):
'''return 1 if the checkbutton is now enable, else
return 0'''
@@ -187,7 +188,6 @@ class CalendarioActivity(activity.Activity):
self.check_status = 0
else:
self.check_status = 1
- self._log.debug(self.check_status)
def _dia_selec_cb(self, widget, data=None):
'''when a date is selected'''
@@ -216,6 +216,7 @@ class CalendarioActivity(activity.Activity):
self.buffer = self.entrada.get_buffer()
self.inicio, self.final = self.buffer.get_bounds()
self.cadena = self.buffer.get_text(self.inicio, self.final, False)
+
#if the buffer is not empty or does not have space
if self.cadena is not ' ' and self.cadena is not '' and self.cadena is not ' ':
self.lista_fecha = self.calendario.get_date()
@@ -255,6 +256,8 @@ class CalendarioActivity(activity.Activity):
self.columna = gtk.TreeViewColumn(self.numero, self.celda, text = 0)
self.actividades.append_column(self.columna)
+ #Cambiar Prioridad por imagen de estrella
+ #self.columna = gtk.TreeViewColumn('Imagen', gtk.CellRendererPixbuf(), text = 1)
self.columna = gtk.TreeViewColumn(self.actividad, self.celda, text = 1)
self.actividades.append_column(self.columna)
self.columna = gtk.TreeViewColumn(self.categoria, self.celda, text = 2)