summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-08 23:06:40 +0200
committermathieui <mathieui@mathieui.net>2016-10-08 23:06:40 +0200
commit3a608c191f0eb35993e2a672adbdd5ac883f4dca (patch)
tree13e3ae73c7de2903b3032ae836a7545e8992e77f
parent1252f21e10c81b1c61f07c63ae204f8275eb0c8a (diff)
downloadpoezio-3a608c191f0eb35993e2a672adbdd5ac883f4dca.tar.gz
poezio-3a608c191f0eb35993e2a672adbdd5ac883f4dca.tar.bz2
poezio-3a608c191f0eb35993e2a672adbdd5ac883f4dca.tar.xz
poezio-3a608c191f0eb35993e2a672adbdd5ac883f4dca.zip
Add a raw parameter to all data form windows
Otherwise it will obviously traceback when calling it with that parameter
-rw-r--r--poezio/windows/data_forms.py10
1 files changed, 5 insertions, 5 deletions
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