From fb40ac54fc6e9fe79f29fd99e836187e95bb0509 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 5 Mar 2011 21:42:56 +0100 Subject: 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. --- src/data_forms.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/data_forms.py') 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 -- cgit v1.2.3