PLCOpenEditor.py
branchsvghmi
changeset 3246 0e8dbc2c390e
parent 2532 b9d6f5d7e0f1
child 3570 eb915a9fdcb0
--- a/PLCOpenEditor.py	Thu May 20 12:16:51 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'))