Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-04-14 05:53:55 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-04-14 05:53:55 (GMT)
commit8295813ebcf834dc8c1497f4e0a31020fa1a80e2 (patch)
treed34fddd89841a5495b2e0171c3e9813eecd00032 /activity.py
parentf21bc2416d672999b80f07387208e1b4a3d1c33b (diff)
Do not fail on write called from constructor
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/activity.py b/activity.py
index dac1b26..6a54327 100644
--- a/activity.py
+++ b/activity.py
@@ -50,12 +50,12 @@ SMILIES_COLUMNS = 5
class Chat(activity.Activity):
def __init__(self, handle):
- super(Chat, self).__init__(handle)
-
smilies.init()
+ self.chatbox = ChatBox()
+
+ super(Chat, self).__init__(handle)
self.entry = None
- self.chatbox = None
root = self.make_root()
self.set_canvas(root)
@@ -267,8 +267,6 @@ class Chat(activity.Activity):
entry.connect('key-press-event', self.entry_key_press_cb)
self.entry = entry
- self.chatbox = ChatBox()
-
hbox = gtk.HBox()
hbox.add(entry)