How do I set the desktop background in python? (windows)
<p>This is what I'm trying:</p>

<pre><code>import ctypes
import os
drive = "F:\\"
folder = "Keith's Stuff"
image = "midi turmes.png"
image_path = os.path.join(drive, folder, image)
SPI_SETDESKWALLPAPER = 20 
ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, image_path, 3)
</code></pre>

<p>Basicaly, this code is obviously supposed to set the desktop background to midi turmes.png, it changes the desktop, however, for some odd reason, it's always a green background (my personalized settings in windows is a green background behind the image) how do I fix this and make the desktop look like this?: <a href="https://i.imgur.com/VqMZF6H.png" rel="nofollow noreferrer">http://i.imgur.com/VqMZF6H.png</a></p>