Python Plasmoids - 2 Questions

Luca Beltrame einar at heavensinferno.net
Thu May 19 14:06:53 CEST 2011


In data giovedì 19 maggio 2011 13:38:49, Michael Zimmermann ha scritto:

> QDBusInterface is not wrapped by PyQT so that I should propably use the
> dbus module. And then? How?

Yes, you should use the dbus interface. Something like this:

import dbus
from dbus.mainloop.qt import DBusQtMainLoop

# This makes calls async
DBusQtMainLoop(set_as_default=True)

session_bus = dbus.SessionBus()
proxy = session_bus.get_object("org.kde.krunner", "/App")
proxy.showTaskManager(dbus_interface="org.kde.krunner.App")

Further details in this tutorial: http://dbus.freedesktop.org/doc/dbus-
python/doc/tutorial.html (ignore the fact that it says that the only event 
loop supported is GLib).

> QMetaObject::invokeMethod: No such method
> Plasma::Applet::toolTipAboutToShow()

I think someone else raised this issue, but I'm not sure how and if it was 
solved.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20110519/f88b52c4/attachment.sig 


More information about the Plasma-devel mailing list