def config_colors(self): if COLOR_ADAPT: try: self.set_subcode_colors() except Exception as err: print('color_adapt', err) font=(idleConf.GetOption('main', 'EditorWindow', 'font'), idleConf.GetOption('main', 'EditorWindow', 'font-size'), 'bold') self.tagdefs['SUBCODE'] = self.tagdefs['COMMENT'].copy() self.tagdefs['SUBCODE'].update({'background': SUBCODE_BACKGROUND, 'font':font, }) self.tagdefs['MAYBESUBCODE'] = self.tagdefs['COMMENT'] ColorDelegator.config_colors(self) self.tag_raise('SUBCODE') self.tag_raise('sel') # 2011-12-29 - bug fix for highlighting
def config_colors(self): if COLOR_ADAPT: try: self.set_subcode_colors() except Exception as err: print('color_adapt', err) font = (idleConf.GetOption('main', 'EditorWindow', 'font'), idleConf.GetOption('main', 'EditorWindow', 'font-size'), 'bold') self.tagdefs['SUBCODE'] = self.tagdefs['COMMENT'].copy() self.tagdefs['SUBCODE'].update({ 'background': SUBCODE_BACKGROUND, 'font': font, }) self.tagdefs['MAYBESUBCODE'] = self.tagdefs['COMMENT'] ColorDelegator.config_colors(self) self.tag_raise('SUBCODE') self.tag_raise('sel') # 2011-12-29 - bug fix for highlighting