This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cheryl.sabella
Recipients cheryl.sabella, taleinat, terry.reedy, xtreak
Date 2019-01-18.18:32:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547836370.41.0.161586984561.issue35770@roundup.psfhosted.org>
In-reply-to
Content
I'll submit a quick PR as a PoC.  Tal emailed with additional ideas about menudefs, so I agree that another issue would probably be suitable for more discussion.

I haven't looked at the extensions too closely yet, but the insert you're referring to is actually on the 'values' part, so it's not an issue.

mainmenu.menudefs[0][1] refers to menu item 0 (file menu) and the [1] means the nested list of tuples within menu 0.  I learned that while converting to a dict.

A trickier one is this because it changes the menus:
        mainmenu.menudefs.insert(0,
            ('application', [
                ('About IDLE', '<<about-idle>>'),
                    None,
                ]))

But I think this will work for that:
        appmenu = {'application': [
                        ('About IDLE', '<<about-idle>>'),
                         None,
                        ]}
        mainmenu.menudefs = {**appmenu, **mainmenu.menudefs}
History
Date User Action Args
2019-01-18 18:32:51cheryl.sabellasetrecipients: + cheryl.sabella, terry.reedy, taleinat, xtreak
2019-01-18 18:32:50cheryl.sabellasetmessageid: <1547836370.41.0.161586984561.issue35770@roundup.psfhosted.org>
2019-01-18 18:32:50cheryl.sabellalinkissue35770 messages
2019-01-18 18:32:50cheryl.sabellacreate