From 861fe64e118617fb4acb4a023c75962f17860bf0 Mon Sep 17 00:00:00 2001 From: Shane Pepperell Date: Sat, 14 Jan 2023 02:36:46 +0000 Subject: [PATCH] converted ui to grid geometry manager --- announcer.pyw | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/announcer.pyw b/announcer.pyw index bb240e1..a11f143 100644 --- a/announcer.pyw +++ b/announcer.pyw @@ -259,10 +259,10 @@ if __name__ == '__main__': gui.protocol("WM_DELETE_WINDOW", close_script) volume_slider = Scale(gui, from_=0, to=100, orient=HORIZONTAL, command=update_volume) volume_slider.set(100) - volume_slider.pack() + 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() -- 2.30.2