|
| | __init__ (self, root) |
| |
| | create_widgets (self) |
| |
| | create_entry (self, label, key, frame=None, row=0, col=0) |
| |
| | create_double_entry (self, label, key, frame=None, row=0, col=0) |
| |
| | create_file_selector (self, label, key, is_directory=False, frame=None, row=0, column=0) |
| |
| | create_folder_selector (self, label, key, is_directory=False, frame=None, row=0, column=0) |
| |
| | create_output_products_selection (self, frame=None, row=0, column=0) |
| |
| | create_dropdown (self, label, key, options, frame=None, row=0, column=0) |
| |
| | create_editable_dropdown (self, label, key, options, frame=None, row=0, column=0) |
| |
| | create_slider (self, label, key, min_val, max_val, frame=None, row=0, column=0) |
| |
| | create_channel_dropdown (self, row=0) |
| |
| | select_file (self, var, is_directory=False) |
| |
| | load_config (self) |
| |
| | save_config (self) |
| |
| | run_omicron_script (self) |
| |
| | start_omicron_process (self) |
| |
| | append_output (self, text) |
| |
| | open_custom_segs_dialog (self) |
| |
| | generate_fin_ffl (self, channel_dir, selected_segments) |
| |
|
| | root = root |
| |
| str | config_path = "config.txt" |
| |
| dict | config_data = {} |
| |
| dict | entries = {} |
| |
| dict | output_products = {} |
| |
| dict | ui_elements = {} |
| |
| | project_dir = os.getcwd().replace("\\", "/") |
| |
| str | wsl_project_dir = f"/mnt/{self.project_dir[0].lower()}/{self.project_dir[2:]}" |
| |
| str | GWFOUT_DIRECTORY = "./gwfout" |
| |
| | canvas = tk.Canvas(root) |
| |
| | scrollbar = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview) |
| |
| | scrollable_frame = ttk.Frame(self.canvas) |
| |
| | window_frame = self.canvas.create_window((0, 0), window=self.scrollable_frame, anchor="nw") |
| |
| | terminal = TerminalFrame(self.root, row=4, column=0, columnspan=2, height=10, width=80) |
| |
| | custom_segs_btn = tk.Button(button_frame, text="Custom Segs", command=self.open_custom_segs_dialog) |
| |
| | save_button = tk.Button(button_frame, text="Save Config", command=self.save_config) |
| |
| | start_button = tk.Button(button_frame, text="Start OMICRON", command=self.run_omicron_script) |
| |
| | channel_dropdown |
| |
Definition at line 106 of file GWeasy.py.
◆ __init__()
| GWeasy.OmicronApp.__init__ |
( |
| self, |
|
|
| root ) |
◆ append_output()
| GWeasy.OmicronApp.append_output |
( |
| self, |
|
|
| text ) |
Append output to the shared terminal frame.
Definition at line 513 of file GWeasy.py.
◆ create_channel_dropdown()
| GWeasy.OmicronApp.create_channel_dropdown |
( |
| self, |
|
|
| row = 0 ) |
Creates an editable dropdown for selecting a channel, updating dynamically in the background.
Definition at line 307 of file GWeasy.py.
◆ create_double_entry()
| GWeasy.OmicronApp.create_double_entry |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| col = 0 ) |
◆ create_dropdown()
| GWeasy.OmicronApp.create_dropdown |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| options, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Creates a dropdown menu inside a given frame.
Definition at line 275 of file GWeasy.py.
◆ create_editable_dropdown()
| GWeasy.OmicronApp.create_editable_dropdown |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| options, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Creates an editable dropdown menu inside a given frame.
Definition at line 284 of file GWeasy.py.
◆ create_entry()
| GWeasy.OmicronApp.create_entry |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| col = 0 ) |
◆ create_file_selector()
| GWeasy.OmicronApp.create_file_selector |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| is_directory = False, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Creates a file/directory selector inside the given frame (or default to scrollable_frame).
Definition at line 203 of file GWeasy.py.
◆ create_folder_selector()
| GWeasy.OmicronApp.create_folder_selector |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| is_directory = False, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Creates a file/directory selector inside the given frame (or default to scrollable_frame).
Ensures paths are relative to the current working directory and creates the directory if missing.
Returns the selected relative path.
Definition at line 214 of file GWeasy.py.
◆ create_output_products_selection()
| GWeasy.OmicronApp.create_output_products_selection |
( |
| self, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Creates checkboxes for selecting output products inside a given frame.
Definition at line 262 of file GWeasy.py.
◆ create_slider()
| GWeasy.OmicronApp.create_slider |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| min_val, |
|
|
| max_val, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Creates a slider for selecting a numerical value.
Definition at line 298 of file GWeasy.py.
◆ create_widgets()
| GWeasy.OmicronApp.create_widgets |
( |
| self | ) |
|
◆ generate_fin_ffl()
| GWeasy.OmicronApp.generate_fin_ffl |
( |
| self, |
|
|
| channel_dir, |
|
|
| selected_segments ) |
Generates fin.ffl file with correctly formatted paths and timestamps, then preselects it in the UI.
Definition at line 582 of file GWeasy.py.
◆ load_config()
| GWeasy.OmicronApp.load_config |
( |
| self | ) |
|
◆ open_custom_segs_dialog()
| GWeasy.OmicronApp.open_custom_segs_dialog |
( |
| self | ) |
|
Opens a GUI window to select a channel and time segments with scrolling and dynamic layout.
Definition at line 517 of file GWeasy.py.
◆ run_omicron_script()
| GWeasy.OmicronApp.run_omicron_script |
( |
| self | ) |
|
Start the OMICRON script in a separate process and update the output in real-time.
Definition at line 449 of file GWeasy.py.
◆ save_config()
| GWeasy.OmicronApp.save_config |
( |
| self | ) |
|
◆ select_file()
| GWeasy.OmicronApp.select_file |
( |
| self, |
|
|
| var, |
|
|
| is_directory = False ) |
◆ start_omicron_process()
| GWeasy.OmicronApp.start_omicron_process |
( |
| self | ) |
|
Run the OMICRON command dynamically in WSL.
Definition at line 457 of file GWeasy.py.
◆ canvas
| GWeasy.OmicronApp.canvas = tk.Canvas(root) |
◆ channel_dropdown
| GWeasy.OmicronApp.channel_dropdown |
Initial value:= ttk.Combobox(
self.scrollable_frame,
textvariable=self.ui_elements["DATA CHANNELS"],
values=[],
state="normal"
)
Definition at line 317 of file GWeasy.py.
◆ config_data
| dict GWeasy.OmicronApp.config_data = {} |
◆ config_path
| GWeasy.OmicronApp.config_path = "config.txt" |
◆ custom_segs_btn
| GWeasy.OmicronApp.custom_segs_btn = tk.Button(button_frame, text="Custom Segs", command=self.open_custom_segs_dialog) |
◆ entries
| dict GWeasy.OmicronApp.entries = {} |
◆ GWFOUT_DIRECTORY
| str GWeasy.OmicronApp.GWFOUT_DIRECTORY = "./gwfout" |
◆ output_products
| dict GWeasy.OmicronApp.output_products = {} |
◆ project_dir
| GWeasy.OmicronApp.project_dir = os.getcwd().replace("\\", "/") |
◆ root
| GWeasy.OmicronApp.root = root |
◆ save_button
| GWeasy.OmicronApp.save_button = tk.Button(button_frame, text="Save Config", command=self.save_config) |
◆ scrollable_frame
| GWeasy.OmicronApp.scrollable_frame = ttk.Frame(self.canvas) |
◆ scrollbar
| GWeasy.OmicronApp.scrollbar = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview) |
◆ start_button
| GWeasy.OmicronApp.start_button = tk.Button(button_frame, text="Start OMICRON", command=self.run_omicron_script) |
◆ terminal
| GWeasy.OmicronApp.terminal = TerminalFrame(self.root, row=4, column=0, columnspan=2, height=10, width=80) |
◆ ui_elements
| dict GWeasy.OmicronApp.ui_elements = {} |
◆ window_frame
| GWeasy.OmicronApp.window_frame = self.canvas.create_window((0, 0), window=self.scrollable_frame, anchor="nw") |
◆ wsl_project_dir
| str GWeasy.OmicronApp.wsl_project_dir = f"/mnt/{self.project_dir[0].lower()}/{self.project_dir[2:]}" |
The documentation for this class was generated from the following file: