MCPcopy Index your code
hub / github.com/python/cpython / PyShellFileList

Class PyShellFileList

Lib/idlelib/pyshell.py:313–330  ·  view source on GitHub ↗

Extend base class: IDLE supports a shell and breakpoints

Source from the content-addressed store, hash-verified

311
312
313class 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
333class ModifiedColorDelegator(ColorDelegator):

Callers 5

_grep_dialogFunction · 0.90
_stackbrowserFunction · 0.90
setUpClassMethod · 0.90
__init__Method · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

setUpClassMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…