diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-15 19:37:59 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-15 19:37:59 +0100 |
commit | c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33 (patch) | |
tree | f3c0c73622d526678ed9410839c83cd59b3f8a3a /src | |
parent | e8837e252fd4e0166342674575e3060ae34f9559 (diff) | |
download | poezio-c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33.tar.gz poezio-c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33.tar.bz2 poezio-c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33.tar.xz poezio-c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33.zip |
Fixes #2264
Diffstat (limited to 'src')
-rw-r--r-- | src/data_forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data_forms.py b/src/data_forms.py index 8f19e41b..0ad62f73 100644 --- a/src/data_forms.py +++ b/src/data_forms.py @@ -157,7 +157,7 @@ class DummyInput(FieldInput, windows.Win): class ColoredLabel(windows.Win): def __init__(self, text): self.text = text - self.color = 14 + self.color = (14, -1) windows.Win.__init__(self) def resize(self, height, width, y, x): @@ -169,9 +169,9 @@ class ColoredLabel(windows.Win): def refresh(self): with g_lock: - self._win.attron(curses.color_pair(self.color)) + self._win.attron(to_curses_attr(self.color)) self.addstr(0, 0, self.text) - self._win.attroff(curses.color_pair(self.color)) + self._win.attroff(to_curses_attr(self.color)) self._refresh() class BooleanWin(FieldInput, windows.Win): |