]> git.scottworley.com Git - srec/commitdiff
No need to name the start/stop buttons
authorScott Worley <scottworley@scottworley.com>
Wed, 1 Oct 2025 00:20:59 +0000 (17:20 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 1 Oct 2025 00:20:59 +0000 (17:20 -0700)
srec.py

diff --git a/srec.py b/srec.py
index 1885406b3c634fe5a35dec2b3d467ad3868bfb93..da14735ca81d3043995afc46fd4e84e801270c0c 100644 (file)
--- 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)