mirror of https://github.com/m-labs/artiq.git
dashboard moninj: add tooltip for off button
This commit is contained in:
parent
81ef484864
commit
c955ac15ed
|
@ -314,6 +314,10 @@ class _DDSWidget(QtWidgets.QFrame):
|
||||||
apply.clicked.connect(self.apply_changes)
|
apply.clicked.connect(self.apply_changes)
|
||||||
if self.dds_model.is_urukul:
|
if self.dds_model.is_urukul:
|
||||||
off_btn.clicked.connect(self.off_clicked)
|
off_btn.clicked.connect(self.off_clicked)
|
||||||
|
off_btn.setToolTip(textwrap.dedent(
|
||||||
|
"""Note: If TTL RTIO sw for the channel is switched high,
|
||||||
|
this button will not disable the channel.
|
||||||
|
Use the TTL override instead."""))
|
||||||
self.value_edit.returnPressed.connect(lambda: self.apply_changes(None))
|
self.value_edit.returnPressed.connect(lambda: self.apply_changes(None))
|
||||||
self.value_edit.escapePressedConnect(self.cancel_changes)
|
self.value_edit.escapePressedConnect(self.cancel_changes)
|
||||||
cancel.clicked.connect(self.cancel_changes)
|
cancel.clicked.connect(self.cancel_changes)
|
||||||
|
|
Loading…
Reference in New Issue