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

Function _editor_window

Lib/idlelib/editor.py:1697–1713  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

1695
1696
1697def _editor_window(parent): # htest #
1698 # error if close master window first - timer event, after script
1699 root = parent
1700 fixwordbreaks(root)
1701 if sys.argv[1:]:
1702 filename = sys.argv[1]
1703 else:
1704 filename = None
1705 macosx.setupApp(root, None)
1706 edit = EditorWindow(root=root, filename=filename)
1707 text = edit.text
1708 text['height'] = 10
1709 for i in range(20):
1710 text.insert('insert', ' '*i + str(i) + '\n')
1711 # text.bind("<<close-all-windows>>", edit.close_event)
1712 # Does not stop error, neither does following
1713 # edit.text.bind("<<close-window>>", edit.close_event)
1714
1715
1716if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

fixwordbreaksFunction · 0.85
EditorWindowClass · 0.85
strFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…