mirror of https://github.com/m-labs/artiq.git
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.
This commit is contained in:
parent
5fd92a6175
commit
b3db3ea6fc
|
@ -20,6 +20,7 @@ class _TTLWidget(QtWidgets.QFrame):
|
||||||
self.channel = channel
|
self.channel = channel
|
||||||
self.set_mode = dm.ttl_set_mode
|
self.set_mode = dm.ttl_set_mode
|
||||||
self.force_out = force_out
|
self.force_out = force_out
|
||||||
|
self.title = title
|
||||||
|
|
||||||
self.setFrameShape(QtWidgets.QFrame.Box)
|
self.setFrameShape(QtWidgets.QFrame.Box)
|
||||||
self.setFrameShadow(QtWidgets.QFrame.Raised)
|
self.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||||
|
@ -131,7 +132,7 @@ class _TTLWidget(QtWidgets.QFrame):
|
||||||
self.programmatic_change = False
|
self.programmatic_change = False
|
||||||
|
|
||||||
def sort_key(self):
|
def sort_key(self):
|
||||||
return self.channel
|
return self.title
|
||||||
|
|
||||||
|
|
||||||
class _SimpleDisplayWidget(QtWidgets.QFrame):
|
class _SimpleDisplayWidget(QtWidgets.QFrame):
|
||||||
|
|
Loading…
Reference in New Issue