(self, *args)
| 124 | "Regular text edit window in IDLE, supports breakpoints" |
| 125 | |
| 126 | def __init__(self, *args): |
| 127 | self.breakpoints = [] |
| 128 | EditorWindow.__init__(self, *args) |
| 129 | self.text.bind("<<set-breakpoint>>", self.set_breakpoint_event) |
| 130 | self.text.bind("<<clear-breakpoint>>", self.clear_breakpoint_event) |
| 131 | self.text.bind("<<open-python-shell>>", self.flist.open_shell) |
| 132 | |
| 133 | #TODO: don't read/write this from/to .idlerc when testing |
| 134 | self.breakpointPath = os.path.join( |
| 135 | idleConf.userdir, 'breakpoints.lst') |
| 136 | # whenever a file is changed, restore breakpoints |
| 137 | def filename_changed_hook(old_hook=self.io.filename_change_hook, |
| 138 | self=self): |
| 139 | self.restore_file_breaks() |
| 140 | old_hook() |
| 141 | self.io.set_filename_change_hook(filename_changed_hook) |
| 142 | if self.io.filename: |
| 143 | self.restore_file_breaks() |
| 144 | self.color_breakpoint_text() |
| 145 | |
| 146 | rmenu_specs = [ |
| 147 | ("Cut", "<<cut>>", "rmenu_check_cut"), |
nothing calls this directly
no test coverage detected