src.utils.elements_selector package

Submodules

src.utils.elements_selector.elements_selector_controller module

Multiple selector controller

class src.utils.elements_selector.elements_selector_controller.multipleSelectorController(all_elements_names, title, box_checked=True, unique_box=False, element_type=None)[source]

Bases: utils.elements_selector.elements_selector_listener.multipleSelectorListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(elements_selected)[source]

Close the window and send the information to the controller that opened the multiple elements window. :param elements_selected: All the elements selected. :type elements_selected: list of str

set_listener(listener)[source]

Set the listener so that the controller is able to communicate with the controller that opened the multiple elements window. :param listener: Listener linked to the view that opened the multiple elements window. :type listener: listener

src.utils.elements_selector.elements_selector_listener module

Multiple selector Listener

class src.utils.elements_selector.elements_selector_listener.multipleSelectorListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for selecting multiple elements. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked(elements_selected)[source]

src.utils.elements_selector.elements_selector_view module

Multiple selector View

class src.utils.elements_selector.elements_selector_view.multipleSelectorView(all_elements_names, title, box_checked, unique_box)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_trigger()[source]

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

confirm_trigger()[source]

Retrieve the parameters and send the information to the controller.

create_check_boxes(all_elements_names, box_checked, unique_box)[source]
create_select_unselect_buttons()[source]
get_all_elements_selected()[source]

Get the elements selected by the user in the multiple elements’ selector. :return: Elements selected in the multiple elements’ selector. :rtype: str/list of str

select_all_elements_trigger()[source]

Select all the elements of the window.

set_listener(listener)[source]

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

unselect_all_elements_trigger()[source]

Unselect all the elements of the window.

Module contents