From cc00cd2d7a56458330d634d1bc4a34ed5e503f11 Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Sat, 14 Jan 2023 05:27:32 +0000 Subject: [PATCH] made icon only available on windows --- announcer.pyw | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.30.2