Fix the info_win of the InfoTab (anon mode)

This commit is contained in:
Florent Le Coz 2011-02-16 02:54:02 +01:00
parent fd05c7d707
commit 8aede04f5b
2 changed files with 3 additions and 2 deletions

View file

@ -684,7 +684,7 @@ class Core(object):
""" """
main loop waiting for the user to press a key main loop waiting for the user to press a key
""" """
curses.ungetch('\n') # FIXME curses.ungetch(0) # FIXME
while self.running: while self.running:
char = read_char(self.stdscr) char = read_char(self.stdscr)
# search for keyboard shortcut # search for keyboard shortcut

View file

@ -269,13 +269,14 @@ class TabWithInfoWin(Tab):
del self.info_win del self.info_win
Tab.__del__(self) Tab.__del__(self)
class InfoTab(ChatTab): class InfoTab(ChatTab, TabWithInfoWin):
""" """
The information tab, used to display global informations The information tab, used to display global informations
when using a anonymous account when using a anonymous account
""" """
def __init__(self, core): def __init__(self, core):
Tab.__init__(self, core) Tab.__init__(self, core)
TabWithInfoWin.__init__(self)
self.tab_win = windows.GlobalInfoBar() self.tab_win = windows.GlobalInfoBar()
self.input = windows.Input() self.input = windows.Input()
self.name = "Info" self.name = "Info"