Turn colorizing of breakpoint text on or off
(self, color=True)
| 153 | ] |
| 154 | |
| 155 | def color_breakpoint_text(self, color=True): |
| 156 | "Turn colorizing of breakpoint text on or off" |
| 157 | if self.io is None: |
| 158 | # possible due to update in restore_file_breaks |
| 159 | return |
| 160 | if color: |
| 161 | theme = idleConf.CurrentTheme() |
| 162 | cfg = idleConf.GetHighlight(theme, "break") |
| 163 | else: |
| 164 | cfg = {'foreground': '', 'background': ''} |
| 165 | self.text.tag_config('BREAK', cfg) |
| 166 | |
| 167 | def set_breakpoint(self, lineno): |
| 168 | text = self.text |
no test coverage detected