MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / fixwordbreaks

Function fixwordbreaks

tools/python-3.11.9-amd64/Lib/idlelib/editor.py:1734–1740  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

1732
1733
1734def 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
1743def _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.80

Tested by 1

setUpClassMethod · 0.72