Over a million developers have joined DZone.

Change The Wallpaper Under Windows

·

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:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}