From: Georgios Atheridis Date: Sat, 14 Jan 2023 05:27:32 +0000 (+0000) Subject: made icon only available on windows X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=cc00cd2d7a56458330d634d1bc4a34ed5e503f11;p=forks%2Fpeks-announcer.git made icon only available on windows --- diff --git a/announcer.pyw b/announcer.pyw index c664b59..b770a35 100644 --- a/announcer.pyw +++ b/announcer.pyw @@ -292,7 +292,11 @@ if __name__ == '__main__': gui.geometry("260x125") gui.title("Peks Announcer") gui.protocol("WM_DELETE_WINDOW", close_script) - gui.wm_iconbitmap("appicon.ico") + + # Icon is not compatible on posix systems + if os.name == "nt": + gui.wm_iconbitmap("appicon.ico") + title = Label(text="Hello World") title.grid(row=0, column=0) volume_slider = Scale(gui, from_=0, to=100, orient=HORIZONTAL, command=update_volume)