From 8295813ebcf834dc8c1497f4e0a31020fa1a80e2 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Sat, 14 Apr 2012 05:53:55 +0000 Subject: Do not fail on write called from constructor --- (limited to 'activity.py') 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) -- cgit v0.9.1