def apply_settings(self, widget, data=None):
# ???????? ????, ???? ?? ??????
self.window.hide()
if self.white_bg_check.get_active():
self.data['properties']['white_bg'] = True
else:
self.data['properties']['white_bg'] = False
if self.auto_levels_check.get_active():
self.data['properties']['auto_levels'] = True
else:
self.data['properties']['auto_levels'] = False
self.data['properties']['resolution'] = int(self.resolution_cb.get_active_text())
config = open(self.path, 'wb')
json.dump(self.data, config, indent=3)
config.close()
gtk.main_quit()
# ??? ??????? ???????????? ?????????????? ?????????? ???????
评论列表
文章目录