(self)
| 249 | self.context['font'] = font |
| 250 | |
| 251 | def update_highlight_colors(self): |
| 252 | if self.context is not None: |
| 253 | colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'context') |
| 254 | self.context['background'] = colors['background'] |
| 255 | self.context['foreground'] = colors['foreground'] |
| 256 | |
| 257 | if self.cell00 is not None: |
| 258 | line_number_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), |
| 259 | 'linenumber') |
| 260 | self.cell00.config(bg=line_number_colors['background']) |
| 261 | |
| 262 | |
| 263 | CodeContext.reload() |