Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/gui_cavity.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def populate_fault_display(self):
button.commands = [fault.button_command]

elif fault.button_level == "PYDM":
button = PyDMFaultButton()
button = PyDMFaultButton(filename=fault.button_command)
button.openInNewWindow = True
button.filenames = [fault.button_command]
# button.filenames = [fault.button_command]
button.macros = self.cryomodule.pydm_macros

else:
Expand Down
4 changes: 2 additions & 2 deletions frontend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def value_changed(self, new_value):


class PyDMFaultButton(PyDMRelatedDisplayButton):
def __init__(self):
super().__init__()
def __init__(self, filename: str = None):
super().__init__(filename=filename)

def push_button_release_event(self, mouse_event) -> None:
for item in self._get_items():
Expand Down