Re: The REAL Preferred Python Binding Library
Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
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).
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus