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
pgpkF8dLisxJp.pgp
Description: PGP signature
_______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
