hyloa.gui.main_window module

Code that manages the main screen. It is necessary to start the log session in order to trace everything that is done otherwise it is not possible to start the analysis. From here the calls to the other functions branch out.

class hyloa.gui.main_window.MainApp[source]

Bases: QMainWindow

Class to handle the main window

closeEvent(event)[source]

Intercepts window closing to ask whether to save data

close_plot_tab(index)[source]

Function to close a plot tab

conf_logging()[source]

Function that call the logging configuration

create_plot_tabs()[source]

Ensure that the plot tabs are initialized.

duplicate()[source]

For duplication file

exit_app()[source]

Function for exit button

help()[source]

Function show a short guide

init_sidebar()[source]

Create sidebar with buttons

load_data()[source]

call load files to load data

load_session()[source]

Function that call load_previous_session

make_button(text, callback)[source]

Function to create a button with a callback, used for the sidebar

Parameters:
  • text (str) – The text to display on the button

  • callback (function) – The function to call when the button is clicked

Returns:

btn – The created button

Return type:

QPushButton

make_group(title, button_info)[source]

Function to create a group of buttons with a title, used for the sidebar

Parameters:
  • title (str) – The title of the group

  • button_info (list of tuples) – A list of tuples where each tuple contains the button text and the callback function

Returns:

group – The created group box containing the buttons

Return type:

QGroupBox

open_comment_window()[source]

Function to open a window to write some comments about the data or something else

open_default_panels()[source]

Function for opening automatically the shell and the log panel in the bottom part of the main window one next to the other

open_script_editor()[source]

Function to open a window to write some python code

plot()[source]

Function that create a instance for plot’s control panel

position_default_panels()[source]

Function that handle the postion and the automatic scaling of the log and shell panels

refresh_shell_variables()[source]

Function to automatically add new variables to the shell context

resizeEvent(event)[source]

Function that handle the resizing of the main window to adapt the position of the shell and log panels

save_data()[source]

Call the function to save the modified data.

save_session()[source]

Function that call save_current_session

show_loaded_files()[source]

Show a window listing all currently loaded datasets with their column names and basic information.

show_window_navigator()[source]

Function to navigate through all open windows

worksheet()[source]