Change the current wallpaper under Windows
1 2 3 4 5
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)
This recipe requires the ctypes module (http://starship.python.net/crew/theller/ctypes/)
The wallpaper is kept until the user logs off or the computer is rebooted. The image does not need to be kept on disk.