Update the sidebar text colors, usually after config changes.
(self)
| 503 | self.change_callback() |
| 504 | |
| 505 | def update_colors(self): |
| 506 | """Update the sidebar text colors, usually after config changes.""" |
| 507 | linenumbers_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'linenumber') |
| 508 | prompt_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'console') |
| 509 | foreground = prompt_colors['foreground'] |
| 510 | background = linenumbers_colors['background'] |
| 511 | self.colors = (foreground, background) |
| 512 | self.canvas.configure(background=background) |
| 513 | self.change_callback() |
| 514 | |
| 515 | |
| 516 | def _sidebar_number_scrolling(parent): # htest # |
nothing calls this directly
no test coverage detected