Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 3d9e02a

Browse files
authored
Update linux_wallpaper_changer.py
1 parent 41e547d commit 3d9e02a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Miscellaneous/Linux_Wallpaper_Changer/linux_wallpaper_changer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_file():
2424

2525
def set_wallpaper():
2626
# Return if an image file is not selected
27-
if filename == None:
27+
if filename is None:
2828
return
2929
# Identify the user's platform (Windows, Linux or Mac OS)
3030
user_os = platform.lower()
@@ -55,4 +55,4 @@ def set_wallpaper():
5555
# Buttons to get file path and set the wallpaper
5656
file_chooser = Button(text="Choose an image (JPEG or PNG)", height=1, width=30, command=get_file).pack(pady=5)
5757
submit_button = Button(text="Set as wallpaper", height=2, width=30, command=set_wallpaper).pack(pady=5)
58-
window.mainloop()
58+
window.mainloop()

0 commit comments

Comments
 (0)