[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: using dbus with python
From: Bryan Clark <bclark () redhat ! com>
Date: 2005-01-27 20:37:56
Message-ID: 1106858276.3668.26.camel () rhbw ! boston ! redhat ! com
[Download RAW message or body]
Hi Keir ~
I believe you can get the arguments of a message with this function
below. And just for debugging on this kind of stuff you can do "print
dir(message)" to get all available functions.
Hope that helps,
~ Bryan
On Thu, 2005-01-27 at 19:55 +0000, Keir Lawson wrote:
> #! /usr/bin/python
>
> #test
>
> import gtk
> import dbus
>
> bus = dbus.SessionBus()
> service = bus.get_service("org.gnome.Muine")
> remote_object =
> service.get_object("/org/gnome/Muine/Player","org.gnome.Muine.Player")
>
> def foobar(interface, signal_name, service, path, message):
> print type(message)
print message.get_arg_list()
> remote_object.connect_to_signal("SongChanged", foobar)
>
> gtk.main()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic