The REAL Preferred Python Binding Library

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Thu Dec 10 08:22:57 UTC 2020


On Wed, 9 Dec 2020 23:15:26 -0700, Dave Morgan wrote:

>    pydbus:
> ...
>      - cannot package complex data properly (navit mapping app, D-Bus 
> method set_destination, requires a format of  "(iii)s")

    >>> import dbus
    >>> m = dbus.lowlevel.MethodCallMessage("com.example", "/", "com.example", "hi")
    >>> m.append([3, 4, 5], "hi", signature = "(iii)s")
    >>> m.get_args_list()
    [dbus.Struct((dbus.Int32(3), dbus.Int32(4), dbus.Int32(5)), signature=None), dbus.String('hi')]

Seemed to work OK (just followed the docs from
<https://dbus.freedesktop.org/doc/dbus-python/dbus.lowlevel.html>,
with a wee bit of trial and error).


More information about the dbus mailing list