Example #1
0
 def launch(self):
     self.saveDirLineEdit.set_text(settings.save_dir)
     self.nameFormatLineEdit.set_text(settings.name_template)
     self.set_combo_box()
     self.numThreadsSpinBox.set_value(settings.num_threads)
     if self.settingsDialog.run():
         settings.save_dir = self.saveDirLineEdit.get_text()
         settings.name_template = self.nameFormatLineEdit.get_text()
         settings.toolkit = self.toolkitComboBox.get_active_text()
         settings.num_threads = self.numThreadsSpinBox.get_value()
         settings.write_config_file()
     self.settingsDialog.hide()
Example #2
0
 def launch(self):
     self.saveDirLineEdit.set_text(settings.save_dir)
     self.nameFormatLineEdit.set_text(settings.name_template)
     self.set_combo_box()
     self.numThreadsSpinBox.set_value(settings.num_threads)
     if self.settingsDialog.run():
         settings.save_dir = self.saveDirLineEdit.get_text()
         settings.name_template = self.nameFormatLineEdit.get_text()
         settings.toolkit = self.toolkitComboBox.get_active_text()
         settings.num_threads = self.numThreadsSpinBox.get_value()
         settings.write_config_file()
     self.settingsDialog.hide()            
Example #3
0
 def launch(self):
     self.saveDirLineEdit.setText(settings.save_dir)
     self.nameFormatLineEdit.setText(settings.name_template)
     self.numThreadsSpinBox.setValue(settings.num_threads)
     idx = self.toolkitComboBox.findText(settings.toolkit)
     self.toolkitComboBox.setCurrentIndex(idx)
     ok = self.exec_()
     if ok:
         settings.save_dir = str(self.saveDirLineEdit.text())
         settings.name_template = str(self.nameFormatLineEdit.text())
         settings.num_threads = str(self.numThreadsSpinBox.value())
         settings.toolkit = str(self.toolkitComboBox.currentText())
         settings.write_config_file()
Example #4
0
 def launch(self):
     self.saveDirLineEdit.setText(settings.save_dir)
     self.nameFormatLineEdit.setText(settings.name_template)
     self.numThreadsSpinBox.setValue(settings.num_threads)
     idx = self.toolkitComboBox.findText(settings.toolkit)
     self.toolkitComboBox.setCurrentIndex(idx)
     ok = self.exec_()
     if ok:
         settings.save_dir = str(self.saveDirLineEdit.text())
         settings.name_template = str(self.nameFormatLineEdit.text())
         settings.num_threads = str(self.numThreadsSpinBox.value())
         settings.toolkit = str(self.toolkitComboBox.currentText())
         settings.write_config_file()