Beispiel #1
0
 def _syntax_style_changed(self):
     """Refresh the highlighting with the current syntax style by class."""
     if self._highlighter is None:
         # ignore premature calls
         return
     if self.syntax_style:
         self._highlighter._style = create_style_class(self.syntax_style)
         self._highlighter._clear_caches()
     else:
         self._highlighter.set_style_sheet(self.style_sheet)
Beispiel #2
0
 def _syntax_style_changed(self):
     """Refresh the highlighting with the current syntax style by class."""
     if self._highlighter is None:
         # ignore premature calls
         return
     if self.syntax_style:
         self._highlighter._style = create_style_class(self.syntax_style)
         self._highlighter._clear_caches()
     else:
         self._highlighter.set_style_sheet(self.style_sheet)
Beispiel #3
0
def get_console_font_color(syntax_style):
    styles = create_style_class(syntax_style).styles
    font_color = styles[Name]
    return font_color
Beispiel #4
0
def get_console_font_color(syntax_style):
    styles = create_style_class(syntax_style).styles
    font_color = styles[Name]
    return font_color