Re: The REAL Preferred Python Binding Library
dbus-tIYmhaR/[email protected]
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
Thanks to all who replied. At this time I'm going to move forward with the dual interface(pybus, dbus) class and start researching the GLib data formatting. From: Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]> To: [email protected] Subject: Re: The REAL Preferred Python Binding Library > ? pydbus: > ... > ??? - cannot package complex data properly (navit mapping app, D-Bus > method set_destination, requires a format of? "(iii)s" > > >>> import dbus In dbus it is very easy to package data. I was hoping to be able to do the same in pydbus Thanks for the code below, I think it will help a lot for the longer term GLib research. > 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')] > From: "Thomas Kluyver"<[email protected]> > To:[email protected] > Subject: Re: The REAL Preferred Python Binding Library >> If you're trying to*communicate* with Gnome apps, any D-Bus binding should work. After all, that's the point of having a standard protocol. That's what I would have thought but there are differences between them all. Mind you, the gnome devs seem to like making things obscure :( Thanks once again Dave -- Dave Morgan Senior Consultant, 1001111 Alberta Limited dave.morgan-tIYmhaR/[email protected] 403 399 2442 _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus