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/tabs/data_forms.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/tabs/data_forms.py')
-rw-r--r-- | poezio/tabs/data_forms.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/poezio/tabs/data_forms.py b/poezio/tabs/data_forms.py index c73f4922..d216d4ca 100644 --- a/poezio/tabs/data_forms.py +++ b/poezio/tabs/data_forms.py @@ -8,12 +8,14 @@ log = logging.getLogger(__name__) from poezio import windows from poezio.tabs import Tab + class DataFormsTab(Tab): """ A tab contaning various window type, displaying a form that the user needs to fill. """ plugin_commands = {} + def __init__(self, core, form, on_cancel, on_send, kwargs): Tab.__init__(self, core) self._form = form @@ -24,7 +26,8 @@ class DataFormsTab(Tab): for field in self._form: self.fields.append(field) self.topic_win = windows.Topic() - self.form_win = windows.FormWin(form, self.height-4, self.width, 1, 0) + self.form_win = windows.FormWin(form, self.height - 4, self.width, 1, + 0) self.help_win = windows.HelpText("Ctrl+Y: send form, Ctrl+G: cancel") self.help_win_dyn = windows.HelpText() self.key_func['KEY_UP'] = self.form_win.go_to_previous_input @@ -72,4 +75,3 @@ class DataFormsTab(Tab): self.help_win.refresh() self.help_win_dyn.refresh(self.form_win.get_help_message()) self.form_win.refresh() - |