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

Method open_shell

Lib/idlelib/pyshell.py:322–330  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

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 3

mainFunction · 0.95
checksyntaxMethod · 0.80
init_shellMethod · 0.80

Calls 3

PyShellClass · 0.85
wakeupMethod · 0.45
beginMethod · 0.45

Tested by 1

init_shellMethod · 0.64