def __init__(self, modulators, selected_index=0, signal_tree_model=None, parent=None):
        """

        :type modulators: list of Modulator
        :param parent:
        """
        super().__init__(parent)
        self.ui = Ui_ModulationSettings()
        self.ui.setupUi(self)

        self.ui.labelModulationProfile.setVisible(constants.SETTINGS.value("multiple_modulations", False, bool))
        self.ui.comboBoxModulationProfiles.setVisible(constants.SETTINGS.value("multiple_modulations", False, bool))

        self.signal_tree_model = signal_tree_model
        self.modulators = modulators  # type: list[Modulator]
        for modulator in self.modulators:
            self.ui.comboBoxModulationProfiles.addItem(modulator.name)

        self.ui.comboBoxModulationProfiles.setCurrentIndex(selected_index)

        self.show_selected_modulation_infos()
        self.create_connects()
def __init__ ( self , modulators , selected_index = 0 , signal_tree_model = None , parent = None ) : super ( ) . __init__ ( parent ) self . ui = Ui_ModulationSettings ( ) self . ui . setupUi ( self ) self . ui . labelModulationProfile . setVisible ( constants . SETTINGS . value ( "multiple_modulations" , False , bool ) ) self . ui . comboBoxModulationProfiles . setVisible ( constants . SETTINGS . value ( "multiple_modulations" , False , bool ) ) self . signal_tree_model = signal_tree_model self . modulators = modulators for modulator in self . modulators : self . ui . comboBoxModulationProfiles . addItem ( modulator . name ) self . ui . comboBoxModulationProfiles . setCurrentIndex ( selected_index ) self . show_selected_modulation_infos ( ) self . create_connects ( )
:type modulators: list of Modulator
        :param parent: