PLCOpenEditor.py
changeset 2737 38afed869ff6
parent 2532 b9d6f5d7e0f1
child 3570 eb915a9fdcb0
--- a/PLCOpenEditor.py	Wed May 12 11:36:56 2021 +0200
+++ b/PLCOpenEditor.py	Mon May 24 14:33:54 2021 +0200
@@ -140,9 +140,8 @@
                 _(u'Community support'),
                 wx.OK | wx.ICON_INFORMATION)
 
-        id = wx.NewId()
-        parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
-        self.Bind(wx.EVT_MENU, handler, id=id)
+        menu_entry = parent.Append(help='', id=wx.ID_ANY, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
+        self.Bind(wx.EVT_MENU, handler, menu_entry)
 
         AppendMenu(parent, help='', id=wx.ID_ABOUT,
                    kind=wx.ITEM_NORMAL, text=_(u'About'))