]> git.scottworley.com Git - srec/commitdiff
Use a Box for the not_recording view also
authorScott Worley <scottworley@scottworley.com>
Wed, 1 Oct 2025 00:17:40 +0000 (17:17 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 1 Oct 2025 00:17:40 +0000 (17:17 -0700)
srec.py

diff --git a/srec.py b/srec.py
index b9ab34448ce0351d2a6acd9ec7a0802ef8d94d58..1885406b3c634fe5a35dec2b3d467ad3868bfb93 100644 (file)
--- a/srec.py
+++ b/srec.py
@@ -78,8 +78,11 @@ def on_activate(app: Gtk.Application) -> None:
     win.set_title('SRec')
     stack = Gtk.Stack()
 
+    nr_box = Gtk.Box()
+    nr_box.set_orientation(Gtk.Orientation.VERTICAL)
     start_recording = make_button("Start Recording", on_start_recording, stack)
-    stack.add_named(start_recording, "not_recording")
+    nr_box.append(start_recording)
+    stack.add_named(nr_box, "not_recording")
 
     r_box = Gtk.Box()
     r_box.set_orientation(Gtk.Orientation.VERTICAL)