src.edit.dataset_info package

Submodules

src.edit.dataset_info.dataset_info_controller module

Dataset info controller

class src.edit.dataset_info.dataset_info_controller.datasetInfoController(all_channels_names)[source]

Bases: edit.dataset_info.dataset_info_listener.datasetInfoListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(channels_selected)[source]

Close the window and send the information to the main controller.

get_elements_selected(elements_selected, element_type)[source]

Get the elements selected by the user in the multiple elements’ selector. :param elements_selected: Elements selected in the multiple elements’ selector. :type elements_selected: list of str :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str

set_listener(listener)[source]

Set the main listener so that the controller is able to communicate with the main controller. :param listener: main listener :type listener: mainController

src.edit.dataset_info.dataset_info_listener module

Dataset info listener

class src.edit.dataset_info.dataset_info_listener.datasetInfoListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for displaying the dataset’s information. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked(channels_selected)[source]
get_elements_selected(elements_selected, element_type)[source]

src.edit.dataset_info.dataset_info_view module

Dataset info view

class src.edit.dataset_info.dataset_info_view.datasetInfoView(all_channels_names)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_dataset_info_trigger()[source]

Send the information to the controller that the computation is cancelled.

channels_selection_trigger()[source]

Open the multiple selector window. The user can select multiple channels.

check_element_type(elements_selected, element_type)[source]
confirm_dataset_info_trigger()[source]

Retrieve the channel name and location and send the information to the controller.

set_channel_selected(channels_selected)[source]

Set the channels selected in the multiple selector window. :param channels_selected: Channels selected. :type channels_selected: list of str

set_listener(listener)[source]

Set the listener to the controller. :param listener: Listener to the controller. :type listener: datasetInfoController

Module contents