added a label + moved ui around a bit
authorShane Pepperell <shane.pepperell@me.com>
Sat, 14 Jan 2023 04:44:19 +0000 (04:44 +0000)
committerShane Pepperell <shane.pepperell@me.com>
Sat, 14 Jan 2023 04:44:19 +0000 (04:44 +0000)
1  2 
announcer.pyw

diff --cc announcer.pyw
index 3b9a1b43bd57584c3e3145d4e1918c78c48d2527,82c08d98846edd8a249038260211ddd884c9e967..8ac3d1153dea21913f3836c28bf892d3262669da
@@@ -283,15 -289,14 +289,16 @@@ if __name__ == '__main__'
      # GUI that shows a slider for sound volume control and a button for testing volume.
      gui = Tk()
      gui.geometry("250x100")
 -    gui.title("LoL Announcer")
 +    gui.title("Peks Announcer")
      gui.protocol("WM_DELETE_WINDOW", close_script)
 +    gui.wm_iconbitmap("appicon.ico")
      volume_slider = Scale(gui, from_=0, to=100, orient=HORIZONTAL, command=update_volume)
 -    volume_slider.set(100)
 -    volume_slider.pack()
 +    volume_slider.set(50)
 +    volume_slider.grid(row=0, column=0)
      mute_button = Button(gui, text='Mute', command=mute)
 -    mute_button.pack()
 -    Button(gui, text='Test volume', command=play_random_sound).pack()
 +    mute_button.grid(row=0, column=1)
 +    Button(gui, text='Test volume', command=play_random_sound).grid()
      announcer_thread = threading.Thread(target=announcer_loop)
      announcer_thread.start()
-     mainloop()
+     mainloop()
++