I've been trying for several hours to change the desktop wallpaper in Windows 7 in Python using ctypes.windll.user32.SystemParametersInfoA with no avail. I have searched several sources and none have had a solution that worked on my system.
The following fragment has no effect on wallpaper:
ctypes.windll.user32.SystemParametersInfoA(20, 0, "image.jpg", 0)
image.jpg
is valid.
Also, if it's any help, print (ctypes.windll.user32.SystemParametersInfoA(20, 0, "image.jpg", 0))
returns 0.
I'm using Python 3.4. Any help is greatly appreciated.