From b3db3ea6fc82099a91f6d0c5c8a680967ac961aa Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sun, 10 Mar 2019 20:12:28 +0000 Subject: [PATCH] dashboard: Sort TTL moninj channels by name With growing system complexity, the moninj channel index is no longer a very intuitive ordering for typical end users. --- artiq/dashboard/moninj.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 5de911826..3969809c3 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -20,6 +20,7 @@ class _TTLWidget(QtWidgets.QFrame): self.channel = channel self.set_mode = dm.ttl_set_mode self.force_out = force_out + self.title = title self.setFrameShape(QtWidgets.QFrame.Box) self.setFrameShadow(QtWidgets.QFrame.Raised) @@ -131,7 +132,7 @@ class _TTLWidget(QtWidgets.QFrame): self.programmatic_change = False def sort_key(self): - return self.channel + return self.title class _SimpleDisplayWidget(QtWidgets.QFrame):