FAQ
In article <mailman.1059945127.2702.python-list at python.org>, ryan
wrote:
the win32 python extentions don't seem to have "SysParametersInfo()" and i need it to
set the wallpaper in windows.

cyptes has a "SysParametersInfoA()" function but wont let me use the SPI_SETDESKWALLPA
PER attribute.

anyone have any ideas how i can set the windows wallpaper from a python program?
This is what I've been using with windll:

def set_wallpaper(wallpaper):
# refresh wallpaper
try:
import windll
g = windll.module("user32")
buf = windll.cstring(wallpaper)
g.SystemParametersInfo(20, 0, buf, 3)
except:
pass


Regards,

Dietmar

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedAug 3, '03 at 9:10p
activeAug 4, '03 at 6:46p
posts2
users2
websitepython.org

2 users in discussion

Ryan: 1 post Dietmar Schwertberger: 1 post

People

Translate

site design / logo © 2022 Grokbase