def do_config(self, parent=None): d = ConfigDialog(self.shortcuts, parent) if d.exec_() == QDialog.Accepted: with self.page_position: self.set_font_settings() self.set_user_stylesheet() self.misc_config() self.after_load()
def do_config(self, parent=None): d = ConfigDialog(self.shortcuts, parent) if d.exec_() == QDialog.Accepted: opts = config().parse() self.apply_settings(opts)