Return sequence from XVolatileResult with PyUNO

Hello everyone,

I have adapted the getCounter XVolatileResult example from Java to Python, but I’m struggling to make the ResultEvent return a Sequence. I’ve adapted the getResults method to;

class ExampleAddinResult(unohelper.Base, XVolatileResult):
    ...
    def getResult(self):
        aEvent = ResultEvent()
        aEvent.Value = ((1, 2), (3, 4))
        aEvent.Source = self
        return aEvent

However, I’m getting a “Wrong Data Type” error in my spreadsheet. If I change it back to a single value it works flawlessly.

Any hints?

I’m having same problem. Anybody can help me?

I’m having same problem. Anybody could help? I found a solution to C++ but didn’t work to Python.