summaryrefslogtreecommitdiff
path: root/src/data_forms.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-10-29 07:20:10 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-10-29 07:20:10 +0200
commit0451127ff8a1b96772b58ff9e246621d0df4c99e (patch)
tree00a650ba6f909ee1977bedeb3001798f39a38a0a /src/data_forms.py
parentb98880b5269764ad69bb19262790d27b2575b174 (diff)
parentaa6738800d67c5061d7e551b3d896f3366296045 (diff)
downloadpoezio-0451127ff8a1b96772b58ff9e246621d0df4c99e.tar.gz
poezio-0451127ff8a1b96772b58ff9e246621d0df4c99e.tar.bz2
poezio-0451127ff8a1b96772b58ff9e246621d0df4c99e.tar.xz
poezio-0451127ff8a1b96772b58ff9e246621d0df4c99e.zip
Merge branch 'master' into plugins
Diffstat (limited to 'src/data_forms.py')
-rw-r--r--src/data_forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data_forms.py b/src/data_forms.py
index 99d08caa..8445d3d2 100644
--- a/src/data_forms.py
+++ b/src/data_forms.py
@@ -428,7 +428,7 @@ class FormWin(object):
self._win = curses.newwin(height, width, y, x)
self.current_input = 0
self.inputs = [] # dict list
- for (name, field) in self._form.getFields():
+ for (name, field) in self._form.getFields().items():
if field['type'] == 'hidden':
continue
try:
@@ -508,7 +508,7 @@ class FormWin(object):
self._win.erase()
y = 0
i = 0
- for name, field in self._form.getFields():
+ for name, field in self._form.getFields().items():
if field['type'] == 'hidden':
continue
self.inputs[i]['label'].resize(1, self.width//3, y + 1, 0)