From: Scott Worley Date: Wed, 1 Oct 2025 00:20:59 +0000 (-0700) Subject: No need to name the start/stop buttons X-Git-Url: http://git.scottworley.com/srec/commitdiff_plain/26af1081dab515c641b09c45276494f1ef65f44b?ds=inline;hp=650daf790dd331359a997b363bc07c08f067ae66 No need to name the start/stop buttons --- diff --git a/srec.py b/srec.py index 1885406..da14735 100644 --- a/srec.py +++ b/srec.py @@ -80,14 +80,12 @@ def on_activate(app: Gtk.Application) -> None: nr_box = Gtk.Box() nr_box.set_orientation(Gtk.Orientation.VERTICAL) - start_recording = make_button("Start Recording", on_start_recording, stack) - nr_box.append(start_recording) + nr_box.append(make_button("Start Recording", on_start_recording, stack)) stack.add_named(nr_box, "not_recording") r_box = Gtk.Box() r_box.set_orientation(Gtk.Orientation.VERTICAL) - stop_recording = make_button("Stop Recording", on_stop_recording, stack) - r_box.append(stop_recording) + r_box.append(make_button("Stop Recording", on_stop_recording, stack)) stack.add_named(r_box, "recording") win.set_child(stack)