dbus-python method access global
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Feb 4 03:43:07 PST 2010
On Wed, 03 Feb 2010 at 12:08:36 -0800, Ed Tsang wrote:
> global status
That's not how the global statement works; to work as you seem to intend, it
would need to appear like this inside the Error method (please see general
Python documentation).
What you probably want to do is to store the status as an attribute of the
Agent (i.e. "self.status = 5", and later something like "print agent.status").
Again, this is nothing to do with D-Bus, and it's probably worth learning more
about Python in general before you use it for D-Bus.
Simon
More information about the dbus
mailing list