tommy.view.menu_bar.MenuBar

class tommy.view.menu_bar.MenuBar(parent: QWidget, project_settings_controller: ProjectSettingsController, saving_loading_controller: SavingLoadingController, export_controller: ExportController, topic_modelling_controller: TopicModellingController)[source]

Bases: QMenuBar

Menu bar class for the topic modelling application

__init__(parent: QWidget, project_settings_controller: ProjectSettingsController, saving_loading_controller: SavingLoadingController, export_controller: ExportController, topic_modelling_controller: TopicModellingController) None[source]

Initialize the menu bar.

disable_menu_on_start_topic_modelling() None[source]

Disable the export menu when the topic modelling is started. :return: None

enable_menu_on_finish_topic_modelling() None[source]

Enable the export menu when the topic modelling is finished. :return: None

export_before_running() bool[source]

Raise an error if topic modelling is not yet performed and signal the method to stop :return: a boolean value whether the topic modelling is NOT yet perfomed

export_document_topics() None[source]

Export documents related to topics to a CSV file. :return: None

export_to_gexf() None[source]

Export the networks to GEXF files. :return: None

export_to_png() None[source]

Export the plots to PNG files. :return: None

export_topic_words() None[source]

Export words related to topics to a CSV file. :return: None

import_input_folder() None[source]

Open a file dialog to select a folder and set input folder in project settings :return: None

save_settings_as() None[source]

Ask the user where to save the project settings and save them. :return: None

save_settings_to_file() None[source]

Save project settings to a file. If the file path is not already known, the user is asked by calling save_settings_as instead. :return: None

show_about_dialog() None[source]

Show the About dialog. :return: None

staticMetaObject = PySide6.QtCore.QMetaObject("MenuBar" inherits "QMenuBar": )