diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-21 05:43:57 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-21 05:43:57 +0000 |
commit | ac3e0f7099352254cba53d14d896dc05c9c55e6f (patch) | |
tree | a61ff207aa07a2a39e1068111bb00904eef503f1 /src/tabs.py | |
parent | 1c923fcdcc60a90fd6e2ebf09c5d4464f16995fd (diff) | |
download | poezio-ac3e0f7099352254cba53d14d896dc05c9c55e6f.tar.gz poezio-ac3e0f7099352254cba53d14d896dc05c9c55e6f.tar.bz2 poezio-ac3e0f7099352254cba53d14d896dc05c9c55e6f.tar.xz poezio-ac3e0f7099352254cba53d14d896dc05c9c55e6f.zip |
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
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 14 |
1 files changed, 13 insertions, 1 deletions
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 |