Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/calendario.py
diff options
context:
space:
mode:
authoryaderv <yajosev@gmail.com>2011-03-23 16:55:22 (GMT)
committer yaderv <yajosev@gmail.com>2011-03-23 16:55:22 (GMT)
commit285b3c841ecae389bfbb3aea23ff417d54772785 (patch)
tree8075aee44d2279f212075d2a1b1d385468d95934 /calendario.py
parent27c3a0ab2ec2b377f2300e42383fce1ff62b8c2c (diff)
pending tasks
Diffstat (limited to 'calendario.py')
-rw-r--r--calendario.py27
1 files changed, 21 insertions, 6 deletions
diff --git a/calendario.py b/calendario.py
index 24998a9..9c3afe6 100644
--- a/calendario.py
+++ b/calendario.py
@@ -17,7 +17,8 @@
from gettext import gettext as _
from fecha import FechaUnix, FechaNormal
-from archivo import crear_modelo, abrir_archivo, guardar_archivo, guardar_dato, borrar_dato, comprobar_archivo, dict_meses, borrar_dict_meses
+from archivo import crear_modelo, abrir_archivo, guardar_archivo, guardar_dato, borrar_dato, \
+ comprobar_archivo, dict_meses, borrar_dict_meses, tareas_pendientes
import gtk
import pango
import logging
@@ -54,7 +55,7 @@ class CalendarioActivity(activity.Activity):
self._log = logging.getLogger('Log Calendario')
self.path = self.get_activity_root()
self.check_editar = False
-
+ tareas_pendientes(self.path)
######################### set interface ########################
#calendar
@@ -84,9 +85,21 @@ class CalendarioActivity(activity.Activity):
self.actividades = gtk.TreeView(self.modelo)
self.area_texto.add(self.actividades)
self._crear_columna()
+
+ #pending tasks
+ self.area_tarea = gtk.ScrolledWindow()
+ #self.area_tarea.set_shadow_type(ALGO)
+ self.area_tarea.set_sensitive(False)
+ self.area_tarea.set_size_request(-1, 100)
+ self.area_tarea.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
+ self.pendientes = gtk.TreeView()
+ self.area_tarea.add(self.pendientes)
+ #expander pending task
+ self.expandir_tareas = gtk.Expander(_('Pending Tasks'))
+ self.expandir_tareas.add(self.area_tarea)
+
#ephemeris
-
self.area_efem = gtk.ScrolledWindow()
self.area_efem.set_shadow_type(gtk.SHADOW_IN)
self.area_efem.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
@@ -112,10 +125,9 @@ class CalendarioActivity(activity.Activity):
self.expandir_efeme.add(self.area_efem)
#phrase of the week
-
self.area_frase = gtk.ScrolledWindow()
self.area_frase.set_shadow_type(gtk.SHADOW_IN)
- self.area_frase.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
+ self.area_frase.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
self.buffer = gtk.TextBuffer()
#phrase file
if comprobar_archivo(self.path, 'frase'):
@@ -153,12 +165,14 @@ class CalendarioActivity(activity.Activity):
#frames
self.marco_expandible = gtk.Frame(_('Notes'))
self.marco_expandible_v = gtk.VBox()
+ self.marco_expandible_v.pack_start(self.expandir_tareas, False)
self.marco_expandible_v.pack_start(self.expandir_frases, False)
self.marco_expandible_v.pack_start(self.expandir_efeme)
self.marco_expandible.add(self.marco_expandible_v)
self.marco_actividades = gtk.Frame(_('Activities:'))
self.marco_actividades.add(self.area_texto)
+
#combobox
self.combo = gtk.combo_box_new_text()
self.combo.set_size_request(180, -1)
@@ -184,7 +198,7 @@ class CalendarioActivity(activity.Activity):
self.expandir_h.pack_start(self.progre, False)
self.expandir_h.pack_start(self.compl, False)
self.expandir.add(self.expandir_h)
-
+
#file
self.archivo = gtk.FileChooserWidget()
self.archivo.set_current_folder('/media')
@@ -231,6 +245,7 @@ class CalendarioActivity(activity.Activity):
self.contenedor_vi.pack_start(self.marco_expandible, padding = 5)
self.contenedor_vd.pack_start(self.marco_actividades)
+ #self.contenedor_vd.pack_start(self.expandir_tareas, False)
self.contenedor_vd.pack_start(self.contenedor_extendido, False)
self.contenedor_extendido.pack_start(self.expandir)
self.contenedor_vd.pack_start(self.sub_contenedor_h, False, padding = 5)