ldo / dbussy

Python binding for D-Bus using asyncio
91 stars 22 forks source link

How to pass signatures #36

Closed thoradia closed 3 years ago

thoradia commented 3 years ago

Hello again I trying to find out how to use ravel to call the SetProperty method below with name='Name' and value=['A', 'B']

<method name="SetProperty">
    <arg name="name" type="s" direction="in"/>
    <arg name="value" type="v" direction="in"/>
</method>

Thank you for your help

ldo commented 3 years ago

The corresponding argument value will need to be a list or tuple of 2 values, being the type signature and the value of that type.

thoradia commented 3 years ago

I did it like this

ldo commented 3 years ago

I don’t see any variants in that example?

thoradia commented 3 years ago

The code is moving fast I will submit my code as an example when I am done