(parent)
| 1695 | |
| 1696 | |
| 1697 | def _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 | |
| 1716 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected
searching dependent graphs…