New submission from Terry J. Reedy <tjre...@udel.edu>: zzdummy.py is needed for properly testing the extension mechanism. It is intended to provide an example extension for users to follow. When completed, enabled, and invoked, it will prefix every line of a window with some text, or remove the prefix from every line. It would be even better to make it respect selections, as other format options do.
Needed: more comments, including what it does when enabled; docstring for z_in_event; uncomment z_in_event; code for z_out_event. Should the extension have a different name? ZzTestExample? ZzIgnoreThis? Changing an extension name would normally be a bad idea, as it would disable any customizations. But I think we could do it for this one if desired. The default insertion text could be more informative: for instance, 'ignore this' or 'see-doc' or #ignore#. The last would make it a configurable comment/uncomment. Normally, changing a default is a no-no, as it can mess up user configurations. But since the current text is inoperative, this should not matter here. The menu defs are commented out because enabling the extension currently has no effect, so the menu entries would be useless. ***There should be help text for the extension tab explaining the presence and operation of the extension. (This should have been done already.) Extension tests, last revised in #31480, will likely need more changes. ---------- assignee: terry.reedy components: IDLE messages: 310473 nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: revise zzdummy.py type: behavior versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32631> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com