[PyKDE] dcop problem querying wallpaper
Sebastian Kügler
sebas at kde.nl
Fri May 6 05:06:49 BST 2005
Hi,
Trying to query the name of the currently shown wallpaper I stumbled
across the following, which is puzzling for me:
#-------------- SNIP ------------------------------------------------
import dcop, dcopext, sys
from kdecore import *
KCmdLineArgs.init (sys.argv,"bla","foo","bar")
app = KApplication ()
dcop = app.dcopClient ()
kwin = dcopext.DCOPApp ("kwin", dcop)
kdesktop = dcopext.DCOPApp ("kwin", dcop)
# Huge list of methods, looks good
print kwin.KWinInterface.getMethods()
# Just works
ok,current_desktop = kwin.KWinInterface.currentDesktop()
print "Desktop is : ", current_desktop
# None, also no Exception
print kdesktop.KBackgroundIface.getMethods()
# (False, None), no Exception
print kdesktop.KBackgroundIface.currentWallpaper(current_desktop)
#-------------- SNIP ------------------------------------------------
[Python 2.3, KDE 3.4, PyKDE 3.11.3]
While the kwin stuff works just fine, returning the name of the current
desktop, from kdesktop.KBackgroundIface.getMethods() is empty and I
don't even get the usual AttributeError yadda-yadda, also not my
wallpaper name of course.
Is that my lack of sleep tricking me?
Thanks,
sebas
--
http://vizZzion.org | GPG Key ID: 9119 0EF9
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Give a man a fire and he's warm for the day. Set fire to him and he's
warm for the rest of his life
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050506/12268be7/attachment.bin
More information about the PyQt
mailing list