On Windows with python2.5 or higher, use ctypes to load user32.dll and call SystemParametersInfo()
with SPI_SETDESKWALLPAPER action.
For example:
import ctypes
SPI_SETDESKWALLPAPER = 20
ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "image.jpg" , 0)
More Related Contents:
- How do I run another script in Python without waiting for it to finish? [duplicate]
- How do I change the background of a Frame in Tkinter?
- How to get Desktop location?
- How to add a background image into pygame?
- how to remove background of images in python
- GroupBy pandas DataFrame and select most common value
- Convert python datetime to epoch with strftime
- Replace non-ASCII characters with a single space
- Using python Requests with javascript pages
- Send file using POST from a Python script
- List comprehension vs. lambda + filter
- Handling backreferences to capturing groups in re.sub replacement pattern
- TypeError: can only concatenate str (not “float”) to str
- Why does Python’s multiprocessing module import __main__ when starting a new process on Windows?
- How to plot multiple pandas columns
- Best way to receive the ‘return’ value from a python generator
- In Python, how do you find the index of the first value greater than a threshold in a sorted list?
- Import Error: No module named django
- How to override the slice functionality of list in its derived class
- Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding, when trying to start uwsgi
- How to save a figure remotely with pylab? [duplicate]
- How to fix ‘Object arrays cannot be loaded when allow_pickle=False’ for imdb.load_data() function?
- Why does the calculated width and height in pixel of a string in Tkinter differ between platforms?
- How does python and the regex module handle backslashes?
- Select row from a DataFrame based on the type of the object(i.e. str)
- How to annotate a seaborn barplot with the aggregated value
- How do I convert an array (i.e. list) column to Vector
- lower() vs. casefold() in string matching and converting to lowercase
- Efficient dot products of large memory-mapped arrays
- How to use sphinx automodule and exposed functions in __init__