summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2013-09-10 21:09:09 +0200
committerXisco Fauli <anistenis@gmail.com>2013-09-10 21:13:48 +0200
commit6c3a09b3b3ca9ad0c81a55efaaedad35c39de767 (patch)
treefd7f313d4776d5b4957d9b22be24daca32607b81
parent8243dd551e47182e4be429ab61f0a398044d3aa1 (diff)
pywizards: fix the switch between elements in the listboxs
Change-Id: I4603232d158ad3adb60697dbf1425eb5dfe5d71f
-rw-r--r--wizards/com/sun/star/wizards/ui/event/DataAware.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/ui/event/DataAware.py b/wizards/com/sun/star/wizards/ui/event/DataAware.py
index 323257a1705e..0fae91a559f6 100644
--- a/wizards/com/sun/star/wizards/ui/event/DataAware.py
+++ b/wizards/com/sun/star/wizards/ui/event/DataAware.py
@@ -131,6 +131,9 @@ class DataAware(object):
if useUno:
uno.invoke(self._dataObject, "set" + self._field, (ui,))
else:
+ if isinstance(ui,tuple):
+ #Listbox Element
+ ui = ui[0]
setattr(self._dataObject, self._field, ui)
self.enableControls(ui)
except Exception: