Perşembe 6 Nisan 2006 21:45 tarihinde, Miguel Angel Alvarez şunları yazmıştı: > Hi, > > Trying to use a dcop call with a bool argument causes a segfault. > dcop calls with other argument types work nicely > What can I do? > > I'm using suse 10, kde 3.5.1/2, python-qt 3.5.1/2, kdebindings-python > 3.5.1/2, python 2.4.1
Well you should use PyKDE snapshot from http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-snapshot20060122.tar.gz ( it won't compile with sip 4.4.1 so you should use older sip snapshots ). > > This is the sample code: > > ..... python code ..... > 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) > ...... end ..... Second, noticed two things: first you didn't call KCmdLineArgs.init() and you didn't call _kapp.exec_loop() . Hope this helps. Regards, ismail -- <Terwou> \\o \o> <o/ o//
pgpy95Xg2NmLv.pgp
Description: PGP signature
_______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
