From: Uwe Hermann Date: Tue, 16 Apr 2013 18:33:25 +0000 (+0200) Subject: Initial libsigrok Python bindings integration. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a683a5e2bb714cf6f774d911d2423a1d8459e933;p=sigrok-meter.git Initial libsigrok Python bindings integration. --- diff --git a/sigrok-meter b/sigrok-meter index 08441ac..6ef3283 100755 --- a/sigrok-meter +++ b/sigrok-meter @@ -20,6 +20,7 @@ ## from gi.repository import Gtk +import libsigrok class SigrokMeter: def __init__(self): @@ -34,10 +35,14 @@ class SigrokMeter: def on_about(self, action): about = self.builder.get_object("aboutdialog") + sr_pkg = libsigrok.sr_package_version_string_get() + sr_lib = libsigrok.sr_lib_version_string_get() + s = "Using libsigrok %s (lib version %s)." % (sr_pkg, sr_lib) + about.set_comments(s) about.run() about.hide() if __name__ == '__main__': - SigrokMeter() - Gtk.main() + SigrokMeter() + Gtk.main()