DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
main_app.py
Go to the documentation of this file.
1'''
2App for testing configuration
3'''
4from os import environ
5from daqconf.cider.app_structures.main_screen import MainScreen
6
7# Textual Imports
8from textual.app import App
9
10class DbeApp(App):
11 # HACK: Need to sort this, only way to get the CSS to work
12 css_file_path = f"{environ.get('DAQCONF_SHARE')}/config/textual_dbe/textual_css"
13
14 CSS_PATH = f"{css_file_path}/main_app_layout.tcss"
15 SCREENS = {"main": MainScreen}
16
17 _input_file_name = None
18
19 def set_input_file(self, input_file_name: str):
20 self._input_file_name = input_file_name
21
22 def on_mount(self):
23
24 self.push_screen("main")
25 if self._input_file_name is not None:
26 self.app.get_screen("main").set_initial_input_file(self._input_file_name)
set_input_file(self, str input_file_name)
Definition main_app.py:19