BeremizIDE.py
changeset 1762 fcc406143e5b
parent 1760 ed2e2afb9573
child 1766 c1e5b9f19483
--- a/BeremizIDE.py	Thu Aug 17 10:12:04 2017 +0300
+++ b/BeremizIDE.py	Thu Aug 17 11:39:10 2017 +0300
@@ -287,9 +287,12 @@
         self._RecursiveAddMenuItems(parent, GetAddMenuItems())
 
     def _init_coll_HelpMenu_Items(self, parent):
-        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)