diff options
author | jblum | 2009-01-21 00:38:23 +0000 |
---|---|---|
committer | jblum | 2009-01-21 00:38:23 +0000 |
commit | f64da1cf3acc3d12e3ac38f27cd3f09c3e920e0a (patch) | |
tree | 3af5b4ca10fd4ccf5f4a711eb1daebfc483aaaa9 | |
parent | 9931fdf6e91914407a604c9f84a37e66498ceb85 (diff) | |
download | gnuradio-f64da1cf3acc3d12e3ac38f27cd3f09c3e920e0a.tar.gz gnuradio-f64da1cf3acc3d12e3ac38f27cd3f09c3e920e0a.tar.bz2 gnuradio-f64da1cf3acc3d12e3ac38f27cd3f09c3e920e0a.zip |
sort macs
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10273 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-x | grc/scripts/usrp2_probe | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/grc/scripts/usrp2_probe b/grc/scripts/usrp2_probe index deb2e538d..ba47907d3 100755 --- a/grc/scripts/usrp2_probe +++ b/grc/scripts/usrp2_probe @@ -104,11 +104,10 @@ class USRP2ProbeWindow(gtk.Window): p = subprocess.Popen(args=args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False, universal_newlines=True) msg = p.stdout.read() #extract mac addrs - self.usrp2_macs = map(lambda l: l.split()[0], filter(lambda l: l.count(':') >= 5, msg.strip().splitlines())) + self.usrp2_macs = sorted(map(lambda l: l.split()[0], filter(lambda l: l.count(':') >= 5, msg.strip().splitlines()))) #set the tree store with the mac addrs self.treestore.clear() - for usrp2_mac in self.usrp2_macs: - self.treestore.append(None, (usrp2_mac,)) + for usrp2_mac in self.usrp2_macs: self.treestore.append(None, (usrp2_mac,)) #set the text with the error message for 0 found, hide the list #when only 1 usrp2, auto handle selection, hide the list #for multiple usrp2, show the list |