diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-15 19:05:20 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-15 19:05:20 +0000 |
commit | 6018d243fb09f891477caabd5ee2c9fdaed62faf (patch) | |
tree | c4cc2e19832003718624cdb1c0318d568aeffe59 /src/gui.py | |
parent | cdcfddcb2e7d4f215ce9940f25a8c57f2c58a919 (diff) | |
download | poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.tar.gz poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.tar.bz2 poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.tar.xz poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.zip |
fixes some crashes, and stuff
Diffstat (limited to 'src/gui.py')
-rw-r--r-- | src/gui.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -35,8 +35,7 @@ import theme import multiuserchat as muc from handler import Handler from config import config -from tab import MucTab, InfoTab, PrivateTab -from window import Window +from tab import MucTab, InfoTab, PrivateTab, RosterInfoTab from user import User from room import Room from message import Message @@ -74,7 +73,9 @@ class Gui(object): self.stdscr = curses.initscr() self.init_curses(self.stdscr) self.xmpp = xmpp - self.tabs = [InfoTab(self.stdscr, "lol info")] + default_tab = InfoTab(self.stdscr, "Info") if self.xmpp.anon\ + else RosterInfoTab(self.stdscr, "Roster") + self.tabs = [default_tab] # a unique buffer used to store global informations # that are displayed in almost all tabs, in an # information window. |