summaryrefslogtreecommitdiff
path: root/src/data_forms.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-05 21:42:56 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-03-05 21:42:56 +0100
commitfb40ac54fc6e9fe79f29fd99e836187e95bb0509 (patch)
tree19bced4c4e2fb557b150553b66335b14bdc1ab85 /src/data_forms.py
parent9c291d1368f004828b123edca65f11c4f6e96dfc (diff)
downloadpoezio-fb40ac54fc6e9fe79f29fd99e836187e95bb0509.tar.gz
poezio-fb40ac54fc6e9fe79f29fd99e836187e95bb0509.tar.bz2
poezio-fb40ac54fc6e9fe79f29fd99e836187e95bb0509.tar.xz
poezio-fb40ac54fc6e9fe79f29fd99e836187e95bb0509.zip
Kind of big cleanup.
Core and Connection classes are now used as singletons, we do not need to pass them to each Tab and Win. This remove a lot of arguments to varius methods.
Diffstat (limited to 'src/data_forms.py')
-rw-r--r--src/data_forms.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/data_forms.py b/src/data_forms.py
index 3b756304..f9e4dcff 100644
--- a/src/data_forms.py
+++ b/src/data_forms.py
@@ -31,8 +31,8 @@ class DataFormsTab(Tab):
A tab contaning various window type, displaying
a form that the user needs to fill.
"""
- def __init__(self, core, form, on_cancel, on_send, kwargs):
- Tab.__init__(self, core)
+ def __init__(self, form, on_cancel, on_send, kwargs):
+ Tab.__init__(self)
self._form = form
self._on_cancel = on_cancel
self._on_send = on_send
@@ -74,11 +74,11 @@ class DataFormsTab(Tab):
Tab.resize(self)
if not self.visible:
return
- self.topic_win.resize(1, self.width, 0, 0, self.core.stdscr)
- self.tab_win.resize(1, self.width, self.height-2, 0, self.core.stdscr)
+ self.topic_win.resize(1, self.width, 0, 0)
+ self.tab_win.resize(1, self.width, self.height-2, 0)
self.form_win.resize(self.height-4, self.width, 1, 0)
- self.help_win.resize(1, self.width, self.height-1, 0, None)
- self.help_win_dyn.resize(1, self.width, self.height-3, 0, None)
+ self.help_win.resize(1, self.width, self.height-1, 0)
+ self.help_win_dyn.resize(1, self.width, self.height-3, 0)
self.lines = []
def refresh(self, tabs, informations, _):
@@ -108,7 +108,7 @@ class FieldInput(object):
raise NotImplementedError
def resize(self, height, width, y, x):
- self._resize(height, width, y, x, None)
+ self._resize(height, width, y, x)
def is_dummy(self):
return False