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

Function fixb2context

tools/python-3.11.9-amd64/Lib/idlelib/macosx.py:245–253  ·  view source on GitHub ↗

Removed bad AquaTk Button-2 (right) and Paste bindings. They prevent context menu access and seem to be gone in AquaTk8.6. See issue #24801.

(root)

Source from the content-addressed store, hash-verified

243 del mainmenu.menudefs[-1][1][0]
244
245def fixb2context(root):
246 '''Removed bad AquaTk Button-2 (right) and Paste bindings.
247
248 They prevent context menu access and seem to be gone in AquaTk8.6.
249 See issue #24801.
250 '''
251 root.unbind_class('Text', '<B2>')
252 root.unbind_class('Text', '<B2-Motion>')
253 root.unbind_class('Text', '<<PasteSelection>>')
254
255def setupApp(root, flist):
256 """

Callers 1

setupAppFunction · 0.85

Calls 1

unbind_classMethod · 0.80

Tested by

no test coverage detected