[New-bugs-announce] [issue27262] IDLE: move Aqua context menu code to maxosx

Terry J. Reedy report at bugs.python.org
Tue Jun 7 22:21:23 EDT 2016

New submission from Terry J. Reedy:

Put the AquaTk code added to pyshell.main in #24801 where it should have gone originally. (My fault, ultimately.)  See aqua_context.diff.  This is a step in factoring main (currently about 170 lines) into a manageable number of function calls.

I will try to add a test that 1. creates an editor window with a 'fixed' root and mocked .right_click_event method, generates a right click, and checks the mock event handler; 2. creates a context menu, etc.

Serhiy, the docstring for .class_bind says "Bind to widgets with bindtag CLASSNAME".  I have not and do not see 'bindtag' defined.  Am I correct that it must refer to a tk widget class, rather than a python tkinter class, or subclass thereof?

assignee: terry.reedy
files: aqua_context.diff
keywords: patch
messages: 267760
nosy: serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: move Aqua context menu code to maxosx
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43290/aqua_context.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list