[issue27262] IDLE: move Aqua context menu code to maxosx

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changeset d8a2b6efdd4a, #27239, adds a test of setupApp in test_macosx that fails on any system, in particular mine, when Ned's fix is undone. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed __

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will add a test that calls setupApp, which would have failed with an error. I will also remove the call to _init_tk_type in setupApp, and let it be called when needed by the first isMacTk function called. Test code can partly simulate being on a particular

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 374dd14cf0e5 by Ned Deily in branch 'default': Issue #27262: fix missing parameter typo https://hg.python.org/cpython/rev/374dd14cf0e5 -- ___ Python tracker __

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am leaving this open to look into later adding an automated test for this to the new test_editmenu file that will be added for #5124. -- ___ Python tracker _

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09ec7f7322b5 by Terry Jan Reedy in branch 'default': Issue #27262: move Aqua unbinding code, which enable context menus, to maxosx. https://hg.python.org/cpython/rev/09ec7f7322b5 -- nosy: +python-dev ___

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: [The light dawns, as the pieces connect together] The pseudoclass 'MyButton' would then consist of all widgets with 'MyButton' inserted into its bindtags list. Similarly for 'Editor'. I presume that a) tk has the equivalent of a master bind dict mapping bindt

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think you can just use bindtags(). button = Button(...) bindtags = button.bindtags() button.bindtags(bindtags[:1] + ['MyButton'] + bindtags[1:]) root.bind_class('MyButton', ...) -- ___ Python tracker

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am asking because I noticed that every editor windows gets the same set of bindings set and destroyed, (as in the other part of the #24801 patch). Since events have a widget attribute, using bound methods with a self parameter is not necessary, so all the d

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "bindtag" is an arbitrary string. Usually this is a name of Tk widget class of or "all". bindtags() allows to retrieve or set a list of bindtags associated with a widget. By default they are: full path of a widget, name of Tk class of widgets, full path of a

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-07 Thread Terry J. Reedy
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