|
| | __init__ (self, root) |
| |
| | start_loading (self) |
| |
| | stop_loading (self) |
| |
| | update_progress (self, text) |
| |
| | show_previous_plot (self) |
| |
| | show_next_plot (self) |
| |
| | update_navigation_buttons (self) |
| |
| | create_widgets (self) |
| |
| | valent (self, label, key, frame=None, row=0, col=0, editable=True) |
| |
| | create_output_path_selector (self, label, key, frame=None, row=0, column=0) |
| |
| | select_output_folder (self, var) |
| |
| | create_file_selector (self, label, key, frame=None, row=0, column=0) |
| |
| | select_file_or_folder (self, var) |
| |
| | run_omicron_plot (self) |
| |
| | execute_command (self, command, gps_start, gps_end, output_folder) |
| |
| | show_plot (self) |
| |
| | load_plots (self, folder) |
| |
|
| | root = root |
| |
| dict | config_data = {} |
| |
| dict | ui_elements = {} |
| |
| list | plot_files = [] |
| |
| int | current_plot_index = 0 |
| |
| | 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") |
| |
| | run_button = tk.Button(button_frame, text="Run Omicron Plot", command=self.run_omicron_plot) |
| |
| | image_frame = tk.Frame(self.scrollable_frame) |
| |
| | image_label = tk.Label(self.image_frame, text="No Plot Available", width=50, height=25, bg="gray") |
| |
| | prev_button = tk.Button(nav_frame, text="⬅ Previous", command=self.show_previous_plot, state=tk.DISABLED) |
| |
| | next_button = tk.Button(nav_frame, text="Next ➡", command=self.show_next_plot, state=tk.DISABLED) |
| |
| | progress = ttk.Progressbar(self.scrollable_frame, orient="horizontal", length=300, mode="indeterminate") |
| |
| | wsl_project_dir = output_folder |
| |
| | photo = ImageTk.PhotoImage(image) |
| |
Definition at line 892 of file GWeasy.py.
◆ __init__()
| GWeasy.Omiviz.__init__ |
( |
| self, |
|
|
| root ) |
◆ create_file_selector()
| GWeasy.Omiviz.create_file_selector |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Allows selecting either a single file or a folder containing `.root` files.
Definition at line 1017 of file GWeasy.py.
◆ create_output_path_selector()
| GWeasy.Omiviz.create_output_path_selector |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| column = 0 ) |
Allows selecting an output folder.
Definition at line 998 of file GWeasy.py.
◆ create_widgets()
| GWeasy.Omiviz.create_widgets |
( |
| self | ) |
|
◆ execute_command()
| GWeasy.Omiviz.execute_command |
( |
| self, |
|
|
| command, |
|
|
| gps_start, |
|
|
| gps_end, |
|
|
| output_folder ) |
Runs the Omicron plot command inside a full WSL shell session with logging.
Definition at line 1130 of file GWeasy.py.
◆ load_plots()
| GWeasy.Omiviz.load_plots |
( |
| self, |
|
|
| folder ) |
Loads the plots from WSL and updates the GUI.
Definition at line 1205 of file GWeasy.py.
◆ run_omicron_plot()
| GWeasy.Omiviz.run_omicron_plot |
( |
| self | ) |
|
◆ select_file_or_folder()
| GWeasy.Omiviz.select_file_or_folder |
( |
| self, |
|
|
| var ) |
Allows selecting a folder (grabs all `.root` files) or an individual file.
Definition at line 1030 of file GWeasy.py.
◆ select_output_folder()
| GWeasy.Omiviz.select_output_folder |
( |
| self, |
|
|
| var ) |
Allows selecting an output folder.
Definition at line 1011 of file GWeasy.py.
◆ show_next_plot()
| GWeasy.Omiviz.show_next_plot |
( |
| self | ) |
|
Scrolls forward through the plots.
Definition at line 940 of file GWeasy.py.
◆ show_plot()
| GWeasy.Omiviz.show_plot |
( |
| self | ) |
|
Displays the current plot in the GUI.
Definition at line 1166 of file GWeasy.py.
◆ show_previous_plot()
| GWeasy.Omiviz.show_previous_plot |
( |
| self | ) |
|
Scrolls backward through the plots.
Definition at line 933 of file GWeasy.py.
◆ start_loading()
| GWeasy.Omiviz.start_loading |
( |
| self | ) |
|
Start the loading animation.
Definition at line 920 of file GWeasy.py.
◆ stop_loading()
| GWeasy.Omiviz.stop_loading |
( |
| self | ) |
|
Stop the loading animation.
Definition at line 924 of file GWeasy.py.
◆ update_navigation_buttons()
| GWeasy.Omiviz.update_navigation_buttons |
( |
| self | ) |
|
Updates the state of navigation buttons.
Definition at line 947 of file GWeasy.py.
◆ update_progress()
| GWeasy.Omiviz.update_progress |
( |
| self, |
|
|
| text ) |
Update progress based on Omicron output.
Definition at line 928 of file GWeasy.py.
◆ valent()
| GWeasy.Omiviz.valent |
( |
| self, |
|
|
| label, |
|
|
| key, |
|
|
| frame = None, |
|
|
| row = 0, |
|
|
| col = 0, |
|
|
| editable = True ) |
◆ canvas
| GWeasy.Omiviz.canvas = tk.Canvas(root) |
◆ config_data
| dict GWeasy.Omiviz.config_data = {} |
◆ current_plot_index
| int GWeasy.Omiviz.current_plot_index = 0 |
◆ image_frame
| GWeasy.Omiviz.image_frame = tk.Frame(self.scrollable_frame) |
◆ image_label
| GWeasy.Omiviz.image_label = tk.Label(self.image_frame, text="No Plot Available", width=50, height=25, bg="gray") |
◆ next_button
| GWeasy.Omiviz.next_button = tk.Button(nav_frame, text="Next ➡", command=self.show_next_plot, state=tk.DISABLED) |
◆ photo
| GWeasy.Omiviz.photo = ImageTk.PhotoImage(image) |
◆ plot_files
| GWeasy.Omiviz.plot_files = [] |
◆ prev_button
| GWeasy.Omiviz.prev_button = tk.Button(nav_frame, text="⬅ Previous", command=self.show_previous_plot, state=tk.DISABLED) |
◆ progress
| GWeasy.Omiviz.progress = ttk.Progressbar(self.scrollable_frame, orient="horizontal", length=300, mode="indeterminate") |
◆ root
| GWeasy.Omiviz.root = root |
◆ run_button
| GWeasy.Omiviz.run_button = tk.Button(button_frame, text="Run Omicron Plot", command=self.run_omicron_plot) |
◆ scrollable_frame
| GWeasy.Omiviz.scrollable_frame = ttk.Frame(self.canvas) |
◆ scrollbar
| GWeasy.Omiviz.scrollbar = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview) |
◆ ui_elements
| dict GWeasy.Omiviz.ui_elements = {} |
◆ window_frame
| GWeasy.Omiviz.window_frame = self.canvas.create_window((0, 0), window=self.scrollable_frame, anchor="nw") |
◆ wsl_project_dir
| GWeasy.Omiviz.wsl_project_dir = output_folder |
The documentation for this class was generated from the following file: