summaryrefslogtreecommitdiff
path: root/poezio/tabs/data_forms.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-11-12 15:03:09 +0100
committermathieui <mathieui@mathieui.net>2017-11-12 15:03:09 +0100
commitd55cc5872503567775f0d7a7731d6f489bf2299b (patch)
tree725f9e7b8144d36054447b3c82edfb45bda8df1d /poezio/tabs/data_forms.py
parent92496db823db34f7f7fb1ab31eaef093a707c3e8 (diff)
downloadpoezio-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.py6
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()
-