Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-05-10 14:31:08 (GMT)
committer flavio <fdanesse@gmail.com>2012-05-10 14:31:08 (GMT)
commit931bbab8dbd8ab7a5440a91c7016800142c6b227 (patch)
treef74f2fd75bd14aff0fe95f029c939cb1aa43974b
parent15398f51f80cfd079f3aff3519aa28959546f85f (diff)
EliminaciĆ³n de Colores e importaciones para Test
-rw-r--r--CeibalNotifica.py27
1 files changed, 16 insertions, 11 deletions
diff --git a/CeibalNotifica.py b/CeibalNotifica.py
index a5f68c4..21a057a 100644
--- a/CeibalNotifica.py
+++ b/CeibalNotifica.py
@@ -24,10 +24,13 @@ import gtk
import sys
import gobject
+'''
try:
from ceibal.notifier.store import *
except:
- from store import *
+ from store import *'''
+
+from store import *
BASE = os.path.dirname(__file__)
pixbuf1 = gtk.gdk.pixbuf_new_from_file_at_size(os.path.join(BASE, "Iconos", "ceibal-gris.png"), 32, 32)
@@ -79,10 +82,12 @@ class CeibalNotifica(gtk.Window):
self.text_view.set_left_margin(10)
self.text_view.set_right_margin(10)
hpanel = gtk.HPaned()
+ '''
try:
self.store = Store(db_filename="prueba.db")
except:
- self.store = Store()
+ self.store = Store()'''
+ self.store = Store()
scroll = gtk.ScrolledWindow()
scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
scroll.add_with_viewport(self.notify_store)
@@ -301,8 +306,8 @@ class ToolbarInfo(gtk.Toolbar):
def __init__(self):
gtk.Toolbar.__init__(self)
- self.modify_bg(gtk.STATE_NORMAL,
- gtk.gdk.Color(0, 20000, 0, 1))
+ #self.modify_bg(gtk.STATE_NORMAL,
+ # gtk.gdk.Color(0, 20000, 0, 1))
separator = gtk.SeparatorToolItem()
separator.props.draw = False
separator.set_size_request(0, -1)
@@ -310,8 +315,8 @@ class ToolbarInfo(gtk.Toolbar):
self.insert(separator, -1)
item = gtk.ToolItem()
self.info_label = gtk.Label("")
- self.info_label.modify_fg(gtk.STATE_NORMAL,
- gtk.gdk.Color(65535, 65535, 65535,1))
+ #self.info_label.modify_fg(gtk.STATE_NORMAL,
+ # gtk.gdk.Color(65535, 65535, 65535,1))
self.info_label.show()
item.add(self.info_label)
self.insert(item, -1)
@@ -335,7 +340,7 @@ class ToolbarControl(gtk.Toolbar):
def __init__(self):
gtk.Toolbar.__init__(self)
- self.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(0, 0, 0, 1))
+ #self.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(0, 0, 0, 1))
self.filter_combo1 = None
self.filter_combo2 = None
self.set_layout()
@@ -353,8 +358,8 @@ class ToolbarControl(gtk.Toolbar):
item = gtk.ToolItem()
label = gtk.Label("Filtrar por:")
- label.modify_fg(gtk.STATE_NORMAL,
- gtk.gdk.Color(65535, 65535, 65535,1))
+ #label.modify_fg(gtk.STATE_NORMAL,
+ # gtk.gdk.Color(65535, 65535, 65535,1))
label.show()
item.add(label)
self.insert(item, -1)
@@ -381,8 +386,8 @@ class ToolbarControl(gtk.Toolbar):
item = gtk.ToolItem()
label = gtk.Label("Seleccionar:")
- label.modify_fg(gtk.STATE_NORMAL,
- gtk.gdk.Color(65535, 65535, 65535,1))
+ #label.modify_fg(gtk.STATE_NORMAL,
+ # gtk.gdk.Color(65535, 65535, 65535,1))
label.show()
item.add(label)
self.insert(item, -1)