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

Function fixb2context

Lib/idlelib/macosx.py:243–251  ·  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

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

Callers 1

setupAppFunction · 0.85

Calls 1

unbind_classMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…