Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Change The Wallpaper Under Windows

DZone's Guide to

Change The Wallpaper Under Windows

·
Free Resource

import ctypes

SPI_SETDESKWALLPAPER = 20 # According to http://support.microsoft.com/default.aspx?scid=97142

ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "myimage.jpg" , 0)

See here for more detail
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/435877
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}