fix typo in wallpaper.py

This commit is contained in:
Gremious 2023-10-31 15:21:11 +00:00 committed by GitHub
parent 22c112569a
commit 20330f031f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ def set_win_wallpaper(img):
if "x86" in os.environ["PROGRAMFILES"]:
ctypes.windll.user32.SystemParametersInfoW(20, 0, img, 3)
else:
# 'W' funcitons take uniqcode strings,
# 'W' funcitons take Unicode strings,
# while 'A' functions take UTF-8 bytestrings.
# (Python 3 strings are Unicode by default.)
ctypes.windll.user32.SystemParametersInfoA(20, 0, str.encode(img), 3)