tommy.main_window
Classes
- class tommy.main_window.MainWindow[source]
Bases:
QMainWindow
Main window class for the topic modelling application
- property controller
- display_correct_initial_files() None [source]
Display the correct initial files in the main window. Setting the input folder path in the project settings will automatically notify the corpus model to extract the metadata from the files. Once the metadata is extracted, the imported files view will automatically get updated. :return: None
- initialize_widget(widget: QWidget, x: int, y: int, w: int, h: int) None [source]
Initialize a widget on the main window.
- Parameters:
widget – The widget to initialize
x – The x-coordinate of the widget
y – The y-coordinate of the widget
w – The width of the widget
h – The height of the widget
- Returns:
None
- on_file_clicked(file: FileLabel) None [source]
Event handler for when a file is clicked.
- Parameters:
file – The file that was clicked
- Returns:
None
- on_topic_clicked(topic_entity: TopicEntity) None [source]
Event handler for when a topic is clicked.
- Parameters:
topic_entity – The topic that was clicked
- Returns:
None
- on_topic_name_changed(topic_entity: TopicEntity) None [source]
Event handler for when a topic name is changed.
- Parameters:
topic_entity – The topic entity whose name was changed
- Returns:
None
- set_initial_window_size() None [source]
Set the initial window size based on screen size.
- Returns:
None
- staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits "QMainWindow": )