(root)
| 1732 | |
| 1733 | |
| 1734 | def fixwordbreaks(root): |
| 1735 | # On Windows, tcl/tk breaks 'words' only on spaces, as in Command Prompt. |
| 1736 | # We want Motif style everywhere. See #21474, msg218992 and followup. |
| 1737 | tk = root.tk |
| 1738 | tk.call('tcl_wordBreakAfter', 'a b', 0) # make sure word.tcl is loaded |
| 1739 | tk.call('set', 'tcl_wordchars', r'\w') |
| 1740 | tk.call('set', 'tcl_nonwordchars', r'\W') |
| 1741 | |
| 1742 | |
| 1743 | def _editor_window(parent): # htest # |