diff options
author | mathieui <mathieui@mathieui.net> | 2017-11-12 15:03:09 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-11-12 15:03:09 +0100 |
commit | d55cc5872503567775f0d7a7731d6f489bf2299b (patch) | |
tree | 725f9e7b8144d36054447b3c82edfb45bda8df1d /poezio/windows/input_placeholders.py | |
parent | 92496db823db34f7f7fb1ab31eaef093a707c3e8 (diff) | |
download | poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.gz poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.bz2 poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.xz poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.zip |
yapf -ir
Diffstat (limited to 'poezio/windows/input_placeholders.py')
-rw-r--r-- | poezio/windows/input_placeholders.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/windows/input_placeholders.py b/poezio/windows/input_placeholders.py index 3ac478fd..47cfac31 100644 --- a/poezio/windows/input_placeholders.py +++ b/poezio/windows/input_placeholders.py @@ -6,7 +6,6 @@ but which are not inputs. import logging log = logging.getLogger(__name__) - from poezio.windows.base_wins import Win from poezio.theming import get_theme, to_curses_attr @@ -17,6 +16,7 @@ class HelpText(Win): Usually used to replace an Input when the tab is in command mode. """ + def __init__(self, text=''): Win.__init__(self) self.txt = text @@ -26,7 +26,8 @@ class HelpText(Win): if txt: self.txt = txt self._win.erase() - self.addstr(0, 0, self.txt[:self.width-1], to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) + self.addstr(0, 0, self.txt[:self.width - 1], + to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) self.finish_line(get_theme().COLOR_INFORMATION_BAR) self._refresh() |