示例#1
0
 def change_font(self):
     """Change console font"""
     font, valid = QFontDialog.getFont(get_font(self.CONF_SECTION), self,
                                   _("Select a new font"))
     if valid:
         self.set_plain_text_font(font)
         set_font(font, self.CONF_SECTION)
示例#2
0
 def change_font(self):
     """Change console font"""
     font, valid = QFontDialog.getFont(get_font(self.CONF_SECTION), self,
                                       _("Select a new font"))
     if valid:
         self.set_plain_text_font(font)
         set_font(font, self.CONF_SECTION)
示例#3
0
 def set_plugin_font(self, font, option=None):
     """Set plugin font option"""
     set_font(font, self.CONF_SECTION, option)
示例#4
0
 def set_plugin_font(self, font, option=None):
     """Set plugin font option"""
     set_font(font, self.CONF_SECTION, option)