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:
QMainWindowClass to handle the main window
- 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
- position_default_panels()[source]
Function that handle the postion and the automatic scaling of the log and shell panels
- resizeEvent(event)[source]
Function that handle the resizing of the main window to adapt the position of the shell and log panels
- show_loaded_files()[source]
Show a window listing all currently loaded datasets with their column names and basic information.
Function to navigate through all open windows