diff options
author | mathieui <mathieui@mathieui.net> | 2014-03-23 00:15:01 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-03-23 00:15:01 +0100 |
commit | 186803d9a97d7efb089acc470b98293b7e472db5 (patch) | |
tree | 89533dc38acddbcfbb34b162974bd29a62c07db3 /src/data_forms.py | |
parent | 918e15d1781fce0fbf2b7b2b047be32163bc4679 (diff) | |
download | poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.gz poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.bz2 poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.xz poezio-186803d9a97d7efb089acc470b98293b7e472db5.zip |
Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before
(info_header was overriden with None in __init__)
- Or why the date parsing worked (“Exeception”)
- Some more reformatting with pylint indications
- Document each module in the tabs module
Diffstat (limited to 'src/data_forms.py')
-rw-r--r-- | src/data_forms.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/data_forms.py b/src/data_forms.py index e1c96500..89781377 100644 --- a/src/data_forms.py +++ b/src/data_forms.py @@ -156,27 +156,6 @@ class DummyInput(FieldInput, windows.Win): def is_dummy(self): return True -class ColoredLabel(windows.Win): - def __init__(self, text): - self.text = text - self.color = get_theme().COLOR_NORMAL_TEXT - windows.Win.__init__(self) - - def resize(self, height, width, y, x): - self._resize(height, width, y, x) - - def set_color(self, color): - self.color = color - self.refresh() - - def refresh(self): - with g_lock: - self._win.erase() - self._win.attron(to_curses_attr(self.color)) - self.addstr(0, 0, self.text) - self._win.attroff(to_curses_attr(self.color)) - self._refresh() - class BooleanWin(FieldInput, windows.Win): def __init__(self, field): FieldInput.__init__(self, field) |