diff --git a/frontend/gui_cavity.py b/frontend/gui_cavity.py index 79092c2..e22184a 100644 --- a/frontend/gui_cavity.py +++ b/frontend/gui_cavity.py @@ -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: diff --git a/frontend/utils.py b/frontend/utils.py index 5c2d054..088806c 100644 --- a/frontend/utils.py +++ b/frontend/utils.py @@ -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():