wolfhece.ui.wolf_multiselection_collapsiblepane =============================================== .. py:module:: wolfhece.ui.wolf_multiselection_collapsiblepane .. autoapi-nested-parse:: Author: HECE - University of Liege, Pierre Archambeau Date: 2024 Copyright (c) 2024 University of Liege. All rights reserved. This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited. Module Contents --------------- .. py:class:: Wolf_TwoLists_Transfer(parent, **kwargs) Bases: :py:obj:`wx.Panel` .. autoapi-inheritance-diagram:: wolfhece.ui.wolf_multiselection_collapsiblepane.Wolf_TwoLists_Transfer :parts: 1 :private-bases: Panel with 2 lists to select multiple items from 1 to 2 or from 2 to 1 .. py:attribute:: delete_if_transfer :value: True .. py:attribute:: max_selected_items :value: None .. py:attribute:: list1 .. py:attribute:: list2 .. py:attribute:: button1to2 .. py:attribute:: button2to1 .. py:attribute:: buttonSort1 .. py:attribute:: buttonSort2 .. py:attribute:: buttonall1to2 .. py:attribute:: buttonall2to1 .. py:method:: get_values() Get values of the lists .. py:method:: set_max_selected_items(max_selected_items: int) set the maximum number of selected items that list1 can transfer to list2 .. py:method:: _ui_bind_actions() Bind actions to buttons .. py:method:: _on_buttonAll1to2(event) Clear list 2 .. py:method:: _on_buttonAll2to1(event) Clear list 2 .. py:method:: _on_buttonSort1(event) Sort items of list 1 .. py:method:: _on_buttonSort2(event) Sort items of list 2 .. py:method:: _on_button1to2(event) Transfer selected items from list 1 to list 2 .. py:method:: _on_button2to1(event) Transfer selected items from list 2 to list 1 .. py:class:: Wolf_MultipleSelection(parent, title, values_dict: dict, callback=None, info: str = '', cmdApply: bool = False, styles=wx.LB_EXTENDED, destroyOK=False, **kwargs) Bases: :py:obj:`wx.Dialog` .. autoapi-inheritance-diagram:: wolfhece.ui.wolf_multiselection_collapsiblepane.Wolf_MultipleSelection :parts: 1 :private-bases: Dialog with multiple 'collapsiblepanes' containing 2 lists to select multiple items .. py:attribute:: destroyOK :value: False .. py:attribute:: panes :value: [] .. py:attribute:: transfers :value: [] .. py:attribute:: buttonOK .. py:attribute:: callback :value: None .. py:method:: get_values() Get values of the lists .. py:method:: _ui_bind_actions() Bind actions to buttons .. py:method:: _on_buttonOK(event) .. py:method:: _on_buttonApply(event) callback .. py:class:: Wolf_CompareArrays_Selection(parent, title, values_dict: dict, callback=None, info: str = '', cmdApply: bool = False, styles=wx.LB_EXTENDED, destroyOK=False, **kwargs) Bases: :py:obj:`Wolf_MultipleSelection` .. autoapi-inheritance-diagram:: wolfhece.ui.wolf_multiselection_collapsiblepane.Wolf_CompareArrays_Selection :parts: 1 :private-bases: Dialog with multiple 'collapsiblepanes' containing 2 lists to select multiple items This class is a specific case of Wolf_MultipleSelection for comparing arrays .. py:attribute:: threshold_label .. py:attribute:: threshold_value .. py:attribute:: min_area_label .. py:attribute:: min_area_value .. py:attribute:: max_patches_label .. py:attribute:: max_patches_value .. py:method:: _on_threshold_enter(event) Callback when the threshold value is changed .. py:method:: _on_min_area_enter(event) Callback when the minimal area value is changed .. py:method:: _on_max_patches_enter(event) Callback when the maximum patches value is changed .. py:method:: get_threshold() Get the threshold value .. py:method:: get_min_area() Get the minimal area value .. py:method:: get_max_patches() Get the maximum patches value .. py:data:: app