From c7ba8fd5b6cafd1f052c9b39c3abefd0631d4b33 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 15 Nov 2011 19:37:59 +0100 Subject: Fixes #2264 --- src/data_forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/data_forms.py') 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): -- cgit v1.2.3