[PyKDE] about dcopclients

Orcan Ogetbil orcan at psu.edu
Thu Dec 22 20:21:27 GMT 2005

I used to use this code to create a dcop client for my superkaramba widget. It 
used to wok fine, but after upgrading my PyKDE and PyQt it stopped working,

import dcop
import kdecore
temp = kdecore.KApplication.kApplication()
dcopclient = temp.dcopClient()
dcopclient.rc = dcop.DCOPRef("amarok", "player")

It gives this error message:

$ python example.py
Traceback (most recent call last):
  File "example.py", line 4, in ?
    dcopclient = temp.dcopClient()
AttributeError: 'NoneType' object has no attribute 'dcopClient'

What is wrong? Is the syntax changed in the last version of PyKDE?
I have Fedora Core 4 and the following versions of PyKDE , PyQt and sip


These are rpm packages from apt.kde-redhat.org

Can someone point me where I am wrong?

Orcan Ogetbil <oogetbil at phys.psu.edu>
Physics Department
Penn State University
211 Osmond Lab

More information about the PyQt mailing list