IDE: Enforce wxPython3 menu appending syntax in default branch... (Fixes exception at startup)
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 21 Oct 2021 13:18:18 +0200
changeset 3368 5e220ce4cb9f
parent 3367 3656d0d235c4
child 3370 3c31dce1a661
IDE: Enforce wxPython3 menu appending syntax in default branch... (Fixes exception at startup)
BeremizIDE.py
--- a/BeremizIDE.py	Tue Oct 19 13:09:45 2021 +0200
+++ b/BeremizIDE.py	Thu Oct 21 13:18:18 2021 +0200
@@ -252,7 +252,7 @@
                    kind=wx.ITEM_NORMAL, text=_(u'Open') + '\tCTRL+O')
         parent.AppendMenu(ID_FILEMENURECENTPROJECTS, _("&Recent Projects"), self.RecentProjectsMenu)
         parent.AppendSeparator()
-        parent.Append(wx.ID_ANY, _("&Tutorials and Examples"), self.TutorialsProjectsMenu)
+        parent.AppendMenu(wx.ID_ANY, _("&Tutorials and Examples"), self.TutorialsProjectsMenu)
 
         exemples_dir = Bpath("exemples")
         project_list = sorted(os.listdir(exemples_dir))