From: Uwe Hermann Date: Tue, 16 Apr 2013 18:18:25 +0000 (+0200) Subject: Replace GUI with glade-generated one. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=57daed83591be2025b49af7e589e86b661fd132d;p=sigrok-meter.git Replace GUI with glade-generated one. --- diff --git a/sigrok-meter b/sigrok-meter index 3b018bd..b2d459c 100755 --- a/sigrok-meter +++ b/sigrok-meter @@ -21,7 +21,10 @@ from gi.repository import Gtk -win = Gtk.Window() +builder = Gtk.Builder() +builder.add_from_file("sigrok-meter.glade") + +win = builder.get_object("main-window") win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main() diff --git a/sigrok-meter.glade b/sigrok-meter.glade new file mode 100644 index 0000000..6907ef1 --- /dev/null +++ b/sigrok-meter.glade @@ -0,0 +1,10 @@ + + + + + False + + + + +