Author terry.reedy
Recipients terry.reedy, tetelevm
Date 2021-03-30.05:04:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617080654.19.0.835694241816.issue43654@roundup.psfhosted.org>
In-reply-to
Content
Investigation of this issue is complicated by the fact that the editor test widgets are wrapped by multicall.MulticallCreator.  It intercepts bind and event method calls (other than event_generate) for user pseudoevents.  It keeps its own map of pseudoevent names to handler and key sequences instead of passing the information on to tk.

The custom entry for "<<autocomplete>>" is the same,
 [<bound method AutoComplete.autocomplete_event of <idlelib.autocomplete.AutoComplete object at 0x00000209DA4FBD20>>, [(0, 0, 'Tab')]]
both before deactivate_... and after activate_... .

I determined this by adding calls like the following
          print('ei5 ', instance.text.event_info('<<autocomplete>>'))
and adding the following to the event_info(virtual) override.
          print('mei', virtual, self.__eventinfo.get(virtual))

I will next look at the custom binding data that should map keys to event handlers.
History
Date User Action Args
2021-03-30 05:04:14terry.reedysetrecipients: + terry.reedy, tetelevm
2021-03-30 05:04:14terry.reedysetmessageid: <1617080654.19.0.835694241816.issue43654@roundup.psfhosted.org>
2021-03-30 05:04:14terry.reedylinkissue43654 messages
2021-03-30 05:04:13terry.reedycreate