Example #1
0
 def ok(self):
     global config
     self._tmp.save()
     config.read()
     cutoff_history.remove_list(self.cutoff_history_entries_for_deletion())
     cutoff_history.save()
     cutoff_presets.remove_list(self.cutoff_preset_entries_for_deletion())
     cutoff_presets.save()
     self.accept()
     for widget in QtWidgets.QApplication.topLevelWidgets():
         for gl_widget in widget.findChildren(GLWidget):
             gl_widget.update_needed = True
             QtWidgets.QApplication.postEvent(gl_widget, UpdateGLEvent())
Example #2
0
 def ok(self):
     global config
     self._tmp.save()
     config.read()
     cutoff_history.remove_list(self.cutoff_history_entries_for_deletion())
     cutoff_history.save()
     cutoff_presets.remove_list(self.cutoff_preset_entries_for_deletion())
     cutoff_presets.save()
     self.accept()
     for widget in QtWidgets.QApplication.topLevelWidgets():
         for gl_widget in widget.findChildren(GLWidget):
             gl_widget.update_needed = True
             QtWidgets.QApplication.postEvent(gl_widget, UpdateGLEvent())
Example #3
0
 def accept(self):
     cutoff_history.remove_list(self.tw_cutoff.history_entries_for_deletion)
     cutoff_history.save()
     return super(CutoffHistoryDialog, self).accept()