From: Shane Pepperell Date: Sat, 14 Jan 2023 14:44:18 +0000 (+0000) Subject: prevent resizing of the main window. UI tweaks X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=d2a1f51f15e34d5b84072c7b9b5fa0fdb300c72c;p=forks%2Fpeks-announcer.git prevent resizing of the main window. UI tweaks --- diff --git a/announcer.pyw b/announcer.pyw index d7820ab..f40d882 100644 --- a/announcer.pyw +++ b/announcer.pyw @@ -278,7 +278,8 @@ def announcer_loop(): if __name__ == '__main__': gui = tkinter.Tk() - gui.geometry("300x150") + gui.geometry("245x125") + gui.resizable(False, False) gui.title("Peks Announcer") gui.protocol("WM_DELETE_WINDOW", close_script) @@ -297,17 +298,17 @@ if __name__ == '__main__': command=update_volume, ) mute_button = tkinter.Button(gui, text='Mute', command=mute) - mute_button.grid(row=1, column=0) + mute_button.grid(row=1, column=1) volume_slider.set(50) - volume_slider.grid(row=1, column=1, columnspan=2) + volume_slider.grid(row=1, column=2) test_volume_button = tkinter.Button( gui, - text='Test volume', + text='Test sound', command=play_random_sound ) - test_volume_button.grid(row=1, column=4) + test_volume_button.grid(row=1, column=3) switchtitle = tkinter.Label(text="Choose Sound Pack") switchtitle.grid(row=2, column=0, columnspan=4)