IDE: fix wxpython4 sequel : project "add" menu was having no extension entry visible. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Mon, 18 Oct 2021 12:34:30 +0200
branchwxPython4
changeset 3336 3860a6ad6998
parent 3332 700fb04f3500
child 3337 6097bca230e8
IDE: fix wxpython4 sequel : project "add" menu was having no extension entry visible.
BeremizIDE.py
--- a/BeremizIDE.py	Mon Oct 04 07:55:57 2021 +0200
+++ b/BeremizIDE.py	Mon Oct 18 12:34:30 2021 +0200
@@ -317,7 +317,7 @@
                 menu.AppendSubMenu(new_menu, text)
                 self._RecursiveAddMenuItems(new_menu, children)
             else:
-                item = menu.Append(wx.MenuItem(text=text, helpString=helpstr))
+                item = menu.Append(wx.MenuItem(text=text, helpString=helpstr, kind=wx.ITEM_NORMAL, id=wx.ID_ANY))
                 self.Bind(wx.EVT_MENU, self.GetAddConfNodeFunction(name), item)
 
     def _init_coll_AddMenu_Items(self, parent):