def __init__(self, mMultiFXChannelEditor): gtk.VBox.__init__(self) self.mMultiFXChannelEditor = mMultiFXChannelEditor self.channel = mMultiFXChannelEditor self.moduleWidgets = {} self.topHBox = gtk.HBox(True) self.inputComboBox = modelutils.magicCombo(multifx.inputmapmodel, self.channel.input, self.on_input_changed, 2) self.topHBox.pack_start(self.inputComboBox) self.outputComboBox = modelutils.magicCombo(multifx.outputmapmodel, self.channel.output, self.on_output_changed, 3) self.topHBox.pack_start(self.outputComboBox) self.pack_start(self.topHBox) for i in range(self.mMultiFXChannelEditor.max_modules): self.moduleWidgets[i] = MultiFXModuleEditor( mMultiFXChannelEditor.modules[i]) self.pack_start(self.moduleWidgets[i], expand=False, fill=False)
def __init__(self, module): gtk.VBox.__init__(self) self.module = module self.parameterWidgets = {} self.topHBox = gtk.HBox() self.effectsComboBox = modelutils.magicCombo(multifx.effectmodel, self.module.effect_index, self.on_changed, 4) self.topHBox.pack_start(self.effectsComboBox) self.enableButton = gtk.ToggleButton('Enable') if self.module.enabled: self.enableButton.set_active(1) else: self.enableButton.set_active(0) self.enableButton.connect('toggled', self.on_toggle) self.topHBox.pack_start(self.enableButton, expand=False, fill=False) self.pack_start(self.topHBox) self.updateWidgets()
def __init__(self,mMultiFXChannelEditor): gtk.VBox.__init__(self) self.mMultiFXChannelEditor = mMultiFXChannelEditor self.channel = mMultiFXChannelEditor self.moduleWidgets = { } self.topHBox = gtk.HBox(True) self.inputComboBox = modelutils.magicCombo(multifx.inputmapmodel,self.channel.input,self.on_input_changed,2) self.topHBox.pack_start(self.inputComboBox) self.outputComboBox = modelutils.magicCombo(multifx.outputmapmodel,self.channel.output,self.on_output_changed,3) self.topHBox.pack_start(self.outputComboBox) self.pack_start(self.topHBox) for i in range(self.mMultiFXChannelEditor.max_modules): self.moduleWidgets[i] = MultiFXModuleEditor(mMultiFXChannelEditor.modules[i]) self.pack_start(self.moduleWidgets[i], expand=False, fill=False)
def __init__(self,module): gtk.VBox.__init__(self) self.module = module self.parameterWidgets = { } self.topHBox = gtk.HBox() self.effectsComboBox = modelutils.magicCombo(multifx.effectmodel,self.module.effect_index,self.on_changed,4) self.topHBox.pack_start(self.effectsComboBox) self.enableButton = gtk.ToggleButton('Enable') if self.module.enabled: self.enableButton.set_active(1) else: self.enableButton.set_active(0) self.enableButton.connect('toggled', self.on_toggle) self.topHBox.pack_start(self.enableButton, expand=False, fill=False) self.pack_start(self.topHBox) self.updateWidgets()