From b1c68d25fb5d89bbecc1ddc437580e615eee83db Mon Sep 17 00:00:00 2001 From: Lisa Zacarias Date: Thu, 27 Jun 2024 10:36:55 -0700 Subject: [PATCH] trying to fix nirp button --- frontend/gui_cavity.py | 4 ++-- frontend/utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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():