Get Topics List Window

@author: L. Calvo-Bartolome

class src.graphical_user_interface.get_topics_list_window.GetTopicsListWindow(tm)

Bases: QDialog

Class representing the window in charge of getting a subcorpus from a given list of topics, such a list being specified by the user.

__init__(tm)

Initializes a “GetTopicsListWindow” window.

Parameters

tm (TaskManager) – TaskManager object associated with the project

center()

Centers the window at the middle of the screen at which the application is being executed.

clicked_get_topic_list()

Method to control the actions that are carried out at the time the “Select weighted topic list” button of the “Get topics window” is pressed by the user.

initUI()

Configures the elements of the GUI window that are not configured in the UI, i.e. icon of the application, the application’s title, and the position of the window at its opening.

init_params()

Initializes the topics parameters in the parameters’ table within the GUI’s “Get topic list” window, i.e. n_max and s_min. The default configuration of these parameters is read from the configuration file ‘/config/parameters.default.yaml’.

show_topics()

Configures the “table_widget_topic_list” and “table_widget_topics_weight” tables to have the appropriate number of columns and rows based on the available topics, and fills out the “table_widget_topic_list” table with the id and corresponding chemical description of each of the topics.

synchronize_scrolls()

Method to connect the scroll bars of the top tables available in this window, so the user can keep track of which topic is he writing the weight for.

update_params()

Updates the topics parameters that are going to be used in the getting of the keywords based on the values read from the table within the GUI’s “Get topic list” window that have been specified by the user.