4

I'm about to work on an implementation of mpris. But currently I am not sure how to read/write dbus interface properties with python-dbus. Is there any examples for this ?

1 Answer 1

4

Finally got the answer:

@dbus.service.method(dbus.PROPERTIES_IFACE, in_signature='ss', out_signature='v')
def Get(self, interface, prop):
    ...
@dbus.service.method(dbus.PROPERTIES_IFACE, in_signature='ssv')
def Set(self, interface, prop, value):
    ...
@dbus.service.method(dbus.PROPERTIES_IFACE, in_signature='s', out_signature='a{sv}')
def GetAll(self, interface):
    ...
Sign up to request clarification or add additional context in comments.

1 Comment

Hi, could you tell me how you found (link maybe)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.