From 6c3a09b3b3ca9ad0c81a55efaaedad35c39de767 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 10 Sep 2013 21:09:09 +0200 Subject: pywizards: fix the switch between elements in the listboxs Change-Id: I4603232d158ad3adb60697dbf1425eb5dfe5d71f --- wizards/com/sun/star/wizards/ui/event/DataAware.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wizards/com/sun') 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: -- cgit v1.2.1