diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/UnoDialog.py')
-rw-r--r-- | wizards/com/sun/star/wizards/ui/UnoDialog.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.py b/wizards/com/sun/star/wizards/ui/UnoDialog.py index 87a1a5d24c71..cfc1c043786b 100644 --- a/wizards/com/sun/star/wizards/ui/UnoDialog.py +++ b/wizards/com/sun/star/wizards/ui/UnoDialog.py @@ -4,7 +4,6 @@ from common.PropertyNames import PropertyNames from com.sun.star.awt import Rectangle from common.Helper import Helper from PeerConfig import PeerConfig -from common.Listener import * from com.sun.star.awt import Rectangle from com.sun.star.awt.PosSize import POS @@ -52,14 +51,14 @@ class UnoDialog(object): if isinstance(PropertyValue,bool): xPSet.setPropertyValue(PropertyName, PropertyValue) else: - if isinstance(PropertyValue,list): - methodname = "[]short" - PropertyValue = tuple(PropertyValue) - elif isinstance(PropertyValue,tuple): - methodname = "[]string" - else: - PropertyValue = (PropertyValue,) - methodname = "[]string" + methodname = "[]string" + if not isinstance(PropertyValue,tuple): + if isinstance(PropertyValue,list): + methodname = "[]short" + PropertyValue = tuple(PropertyValue) + else: + PropertyValue = (PropertyValue,) + uno.invoke(xPSet, "setPropertyValue", (PropertyName, uno.Any( \ methodname, PropertyValue))) |