Extend base class: IDLE supports a shell and breakpoints
| 311 | |
| 312 | |
| 313 | class PyShellFileList(FileList): |
| 314 | "Extend base class: IDLE supports a shell and breakpoints" |
| 315 | |
| 316 | # override FileList's class variable, instances return PyShellEditorWindow |
| 317 | # instead of EditorWindow when new edit windows are created. |
| 318 | EditorWindow = PyShellEditorWindow |
| 319 | |
| 320 | pyshell = None |
| 321 | |
| 322 | def open_shell(self, event=None): |
| 323 | if self.pyshell: |
| 324 | self.pyshell.top.wakeup() |
| 325 | else: |
| 326 | self.pyshell = PyShell(self) |
| 327 | if self.pyshell: |
| 328 | if not self.pyshell.begin(): |
| 329 | return None |
| 330 | return self.pyshell |
| 331 | |
| 332 | |
| 333 | class ModifiedColorDelegator(ColorDelegator): |
no outgoing calls
searching dependent graphs…