added back icon code
authorShane Pepperell <shane.pepperell@me.com>
Sat, 14 Jan 2023 05:19:12 +0000 (05:19 +0000)
committerShane Pepperell <shane.pepperell@me.com>
Sat, 14 Jan 2023 05:19:12 +0000 (05:19 +0000)
1  2 
announcer.pyw

diff --cc announcer.pyw
index 29dd5bcd573fe06576c076c6c11b24d9728bd5ad,2b18bf3b027046661d463cf6b3c92b6264c2ff77..c664b59b4d399936e1ced9063b87278c2a7a6f60
@@@ -292,8 -292,6 +292,7 @@@ if __name__ == '__main__'
      gui.geometry("260x125")
      gui.title("Peks Announcer")
      gui.protocol("WM_DELETE_WINDOW", close_script)
-     img = PhotoImage("appicon.ico")
-     gui.iconphoto(True, img)
++    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)