PLCOpenEditor.py
changeset 1762 fcc406143e5b
parent 1760 ed2e2afb9573
child 1768 691083b5682a
--- a/PLCOpenEditor.py	Thu Aug 17 10:12:04 2017 +0300
+++ b/PLCOpenEditor.py	Thu Aug 17 11:39:10 2017 +0300
@@ -162,9 +162,12 @@
         #AppendMenu(parent, help='', id=wx.ID_HELP_CONTEXT,
         #      kind=wx.ITEM_NORMAL, text=u'IEC 61131-3\tF3')
 
-        handler = lambda event: {
-            wx.MessageBox(version.GetCommunityHelpMsg(), _(u'Community support'), wx.OK | wx.ICON_INFORMATION)
-        }
+        def handler(event):
+            return wx.MessageBox(
+                version.GetCommunityHelpMsg(),
+                _(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)