This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Python] Change wallpaper with PyKDE4

Tags: None
(comma "," separated)
User avatar
minishooter
Registered Member
Posts
1
Karma
0
OS

[Python] Change wallpaper with PyKDE4

Wed Jul 14, 2010 10:21 am
Hello,

I'm a french user, so sorry for my bad english ! :-\

I learn Python, and I would like to do a little script which changes the wallpaper when the temperature of my main CPU changes.

But I don't found how to change the wallpaper with the library PyKDE4.

I think that the function is PyKDE4.plasmascript.Wallpaper.setWallpaper. But It doesn't works! :(

I have making a little function (which doesn't works, of course) :

Code: Select all
def changeWall(cheminWall):
    wall=plasmascript.Wallpaper()
    wall.setWallpaper(cheminWall)
    return True


If you know any tutorial about PyKDE4 or/and PyQt4, can you give me the URL?!

Thank you!


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]