X-Git-Url: http://git.scottworley.com/srec/blobdiff_plain/0d31da276fe483b8399b9fb13dac03ac6813c607..26af1081dab515c641b09c45276494f1ef65f44b:/srec.py?ds=inline diff --git a/srec.py b/srec.py index d57cde2..da14735 100644 --- a/srec.py +++ b/srec.py @@ -78,14 +78,15 @@ def on_activate(app: Gtk.Application) -> None: win.set_title('SRec') stack = Gtk.Stack() - start_recording = make_button("Start Recording", on_start_recording, stack) - stack.add_named(start_recording, "not_recording") - - box = Gtk.Box() - box.set_orientation(Gtk.Orientation.VERTICAL) - stop_recording = make_button("Stop Recording", on_stop_recording, stack) - box.append(stop_recording) - stack.add_named(box, "recording") + nr_box = Gtk.Box() + nr_box.set_orientation(Gtk.Orientation.VERTICAL) + 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) + r_box.append(make_button("Stop Recording", on_stop_recording, stack)) + stack.add_named(r_box, "recording") win.set_child(stack) win.present()