def handle_edit_button(self):
if self.edit_button.text() == 'Edit':
self.edit_button.setText('Save')
self.edit_button.setIcon(QIcon('images/save-preferences.png'))
self.output_path_label.setEnabled(True)
self.image_format_groupbox.setEnabled(True)
self.output_path_line_edit.setEnabled(True)
self.output_path_button.setEnabled(True)
else:
self.edit_button.setText('Edit')
self.edit_button.setIcon(QIcon('images/edit-preferences.png'))
self.output_path_label.setEnabled(False)
self.image_format_groupbox.setEnabled(False)
self.output_path_line_edit.setEnabled(False)
self.output_path_button.setEnabled(False)
self._save_preferences()
评论列表
文章目录