Perşembe 6 Nisan 2006 23:28 tarihinde, Miguel Angel Alvarez şunları yazmıştı: 
[...]
> > Second, noticed two things: first you didn't call KCmdLineArgs.init() and
> > you didn't call _kapp.exec_loop() . Hope this helps.
>
> Look again, I do call KCmdLineArgs.init():
> kdecore.KCmdLineArgs.init(sys.argv[:1], _kaboutdata)

I am blind sorry.

> Why should I call _kapp.exec_loop()? The application has no kde interface,
> so it simply seems to hang if I do so.

It works fine with latest PyKDE snapshot with KDE 3.5.2 :

>>> import sys
>>> import kdecore
>>> import dcopext
>>> _kaboutdata = kdecore.KAboutData('amarok_replaygain.py','Amarok replaygain 
script','0.8.1')
>>> kdecore.KCmdLineArgs.init(sys.argv[:1], _kaboutdata)
>>> _kapp = kdecore.KApplication()
>>> amarok_dcop = dcopext.DCOPApp ("amarok", _kapp.dcopClient())
>>> amarok_dcop.player.enableOSD(True)
(True, None)

Regards,
ismail

-- 
<Terwou> \\o \o> <o/ o//

Attachment: pgpeza9oY3f5x.pgp
Description: PGP signature

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to