Ejemplo n.º 1
0
 def on_btn_add_preset(self):
     dlg = DlgAddPreset(self)
     dlg.exec_()
     if dlg.result() == QtGui.QDialog.Accepted:
         classname = dlg.cb_preset_type.currentText()
         name = dlg.edit_preset_name.text()
         self._mixer.default_layer()._playlist.add_preset(classname, name)
Ejemplo n.º 2
0
 def on_btn_add_preset(self):
     dlg = DlgAddPreset(self)
     dlg.exec_()
     if dlg.result() == QtGui.QDialog.Accepted:
         classname = dlg.cb_preset_type.currentText()
         name = dlg.edit_preset_name.text()
         self._mixer.default_layer()._playlist.add_preset(classname, name)
Ejemplo n.º 3
0
 def on_btn_add_preset(self):
     dlg = DlgAddPreset(self)
     dlg.exec_()
     if dlg.result() == QDialog.Accepted:
         if dlg.tabWidget.currentIndex() == 0:
             classname = dlg.cb_preset_type.currentText()
             name = dlg.edit_preset_name.text()
             self.app.playlist.add_preset(classname, name)
         else:
             preset_name = dlg.cb_existing_preset_name.currentText()
             self.app.playlist.add_existing_preset(preset_name)
Ejemplo n.º 4
0
 def on_btn_add_preset(self):
     dlg = DlgAddPreset(self)
     dlg.exec_()
     if dlg.result() == QtGui.QDialog.Accepted:
         if dlg.tabWidget.currentIndex() == 0:
             classname = dlg.cb_preset_type.currentText()
             name = dlg.edit_preset_name.text()
             self.app.playlist.add_preset(classname, name)
         else:
             preset_name = dlg.cb_existing_preset_name.currentText()
             self.app.playlist.add_existing_preset(preset_name)