From ac3e0f7099352254cba53d14d896dc05c9c55e6f Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Tue, 21 Dec 2010 05:43:57 +0000 Subject: datetime.strftime seems (according to cProfile) to be VERY slow. Improve the refresh performances by reducing A LOT the number of call of this method --- src/tabs.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/tabs.py') diff --git a/src/tabs.py b/src/tabs.py index 62647ad0..c9707996 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -980,7 +980,7 @@ class MucListTab(Tab): self.list_header = windows.ColumnHeaderWin(columns) self.listview = windows.ListWin(columns) self.tab_win = windows.GlobalInfoBar() - self.default_help_message = windows.HelpText("“j”: join room. “i”: information") + self.default_help_message = windows.HelpText("“j”: join room.") self.input = self.default_help_message self.key_func["KEY_DOWN"] = self.listview.move_cursor_down self.key_func["KEY_UP"] = self.listview.move_cursor_up @@ -1065,6 +1065,18 @@ class MucListTab(Tab): def get_color_state(self): return self._color_state +# class SimpleTextTab(Tab): +# """ +# A very simple tab, with just a text displaying some +# information or whatever +# """ +# def __init__(self, core, text): +# Tab.__init__(self, core) +# self.text = text +# self.text_win = + +# def resize(self): +# pass def diffmatch(search, string): """ Use difflib and a loop to check if search_pattern can -- cgit v1.2.3