Пример #1
0
 def apply(self):
     appearance = Preferences().editor_appearance
     appearance.font = self.ui.line_edit_font.text()
     appearance.font_size = self.ui.spinbox_font_size.value()
     appearance.color_scheme = \
         self.ui.list_color_schemes.currentItem().text()
     appearance.show_whitespaces = self.ui.checkbox_whitespaces.isChecked()
Пример #2
0
 def restore_defaults(self):
     appearance = Preferences().editor_appearance
     appearance.font = 'Source Code Pro'
     appearance.font_size = 10
     appearance.show_whitespaces = False
     appearance.color_scheme = 'qt'
     self.reset()