DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_object_modifier_screen.ConfigObjectModifierScreen Class Reference
Inheritance diagram for config_object_modifier_screen.ConfigObjectModifierScreen:
[legend]
Collaboration diagram for config_object_modifier_screen.ConfigObjectModifierScreen:
[legend]

Public Member Functions

 compose (self)
 
None on_button_pressed (self, Button.Pressed event)
 

Static Public Attributes

str css_file_path = f"{environ.get('DAQCONF_SHARE')}/config/textual_dbe/textual_css"
 
str CSS_PATH = f"{css_file_path}/modify_object_layout.tcss"
 

Detailed Description

Definition at line 13 of file config_object_modifier_screen.py.

Member Function Documentation

◆ compose()

config_object_modifier_screen.ConfigObjectModifierScreen.compose ( self)

Definition at line 18 of file config_object_modifier_screen.py.

18 def compose(self):
19 yield RelationshipSelectPanel(id="rel_select")
20 yield Button("Exit", variant="success", id="exit")
21

◆ on_button_pressed()

None config_object_modifier_screen.ConfigObjectModifierScreen.on_button_pressed ( self,
Button.Pressed event )

Definition at line 22 of file config_object_modifier_screen.py.

22 def on_button_pressed(self, event: Button.Pressed)->None:
23 if event.button.id=="exit":
24
25 rel_panel = self.query_one(RelationshipSelectPanel)
26
27
28 rel_panel.verify_relations()
29 # except Exception as e:
30 # self._logger.write_error(e)
31 main_screen = self.app.get_screen("main")
32 selection_menu = main_screen.query_exactly_one("SelectionPanel")
33 selection_menu.refresh(recompose=True)
34 selection_menu.restore_menu_state()
35 self.app.screen.dismiss()
36
37 # Refresh the main screen

Member Data Documentation

◆ css_file_path

str config_object_modifier_screen.ConfigObjectModifierScreen.css_file_path = f"{environ.get('DAQCONF_SHARE')}/config/textual_dbe/textual_css"
static

Definition at line 14 of file config_object_modifier_screen.py.

◆ CSS_PATH

str config_object_modifier_screen.ConfigObjectModifierScreen.CSS_PATH = f"{css_file_path}/modify_object_layout.tcss"
static

Definition at line 16 of file config_object_modifier_screen.py.


The documentation for this class was generated from the following file: