From 3a608c191f0eb35993e2a672adbdd5ac883f4dca Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 8 Oct 2016 23:06:40 +0200 Subject: Add a raw parameter to all data form windows Otherwise it will obviously traceback when calling it with that parameter --- poezio/windows/data_forms.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'poezio/windows/data_forms.py') diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py index 7b405747..129abe9c 100644 --- a/poezio/windows/data_forms.py +++ b/poezio/windows/data_forms.py @@ -77,7 +77,7 @@ class DummyInput(FieldInput, Win): FieldInput.__init__(self, field) Win.__init__(self) - def do_command(self): + def do_command(self, *args, **kwargs): return def refresh(self): @@ -93,7 +93,7 @@ class BooleanWin(FieldInput, Win): self.last_key = 'KEY_RIGHT' self.value = bool(field.get_value()) - def do_command(self, key): + def do_command(self, key, raw=False): if key == 'KEY_LEFT' or key == 'KEY_RIGHT': self.value = not self.value self.last_key = key @@ -138,7 +138,7 @@ class TextMultiWin(FieldInput, Win): self.options = [] self.options.append('') - def do_command(self, key): + def do_command(self, key, raw=False): if not self.edition_input: if key == 'KEY_LEFT': if self.val_pos > 0: @@ -206,7 +206,7 @@ class ListMultiWin(FieldInput, Win): for option in field.get_options()] self.val_pos = 0 - def do_command(self, key): + def do_command(self, key, raw=False): if key == 'KEY_LEFT': if self.val_pos > 0: self.val_pos -= 1 @@ -255,7 +255,7 @@ class ListSingleWin(FieldInput, Win): if field.get_value() == option['value']: self.val_pos = i - def do_command(self, key): + def do_command(self, key, raw=False): if key == 'KEY_LEFT': if self.val_pos > 0: self.val_pos -= 1 -- cgit v1.2.3