Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cardlist.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-14 09:33:52 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-07-14 09:33:52 (GMT)
commit57c2df2c5617d8f6c65e66ad2980cda681181011 (patch)
tree8f60d5eedeac48a1ee168c9545f83cebab6e1fbb /cardlist.py
parent9b5c6711edd39ef5719da0f91c46dacba838fbe4 (diff)
Initial implementation of Speak features
Diffstat (limited to 'cardlist.py')
-rw-r--r--cardlist.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/cardlist.py b/cardlist.py
index 406b02b..2afe729 100644
--- a/cardlist.py
+++ b/cardlist.py
@@ -44,15 +44,15 @@ class CardList(gtk.EventBox):
'update-create-toolbar': (SIGNAL_RUN_FIRST, None, 3 * [TYPE_PYOBJECT]),
'update-create-buttons': (SIGNAL_RUN_FIRST, None, 2 * [TYPE_PYOBJECT]),
}
-
+
def __init__(self):
gtk.EventBox.__init__(self)
- self.model = model.Model(environ['SUGAR_ACTIVITY_ROOT'])
+ self.model = model.Model()
self.pairs = []
self.current_pair = None
-
- self.vbox = gtk.VBox(False)
-
+
+ self.vbox = gtk.VBox(False)
+
fill_box = gtk.Label()
fill_box.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#000000'))
fill_box.show()
@@ -248,7 +248,7 @@ class Pair(gtk.EventBox):
}
def __init__(self, text1, text2 = None, aimg = None, bimg = None,
- asnd = None, bsnd = None, aspeak=False, bspeak=False):
+ asnd = None, bsnd = None, aspeak=None, bspeak=None):
gtk.EventBox.__init__(self)
self.bg_color = '#000000'