From: Shane Pepperell Date: Sat, 14 Jan 2023 04:44:19 +0000 (+0000) Subject: added a label + moved ui around a bit X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=b51f080a16918bc6d32919fb16c75553957548e8;p=forks%2Fpeks-announcer.git added a label + moved ui around a bit --- b51f080a16918bc6d32919fb16c75553957548e8 diff --cc announcer.pyw index 3b9a1b4,82c08d9..8ac3d11 --- a/announcer.pyw +++ b/announcer.pyw @@@ -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() ++