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

Function fixwordbreaks

Lib/idlelib/editor.py:1688–1694  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

1686
1687
1688def fixwordbreaks(root):
1689 # On Windows, tcl/tk breaks 'words' only on spaces, as in Command Prompt.
1690 # We want Motif style everywhere. See #21474, msg218992 and followup.
1691 tk = root.tk
1692 tk.call('tcl_wordBreakAfter', 'a b', 0) # make sure word.tcl is loaded
1693 tk.call('set', 'tcl_wordchars', r'\w')
1694 tk.call('set', 'tcl_nonwordchars', r'\W')
1695
1696
1697def _editor_window(parent): # htest #

Callers 5

__init__Method · 0.90
mainFunction · 0.90
_testFunction · 0.90
setUpClassMethod · 0.90
_editor_windowFunction · 0.85

Calls 1

callMethod · 0.45

Tested by 1

setUpClassMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…