PLCOpenEditor.py
changeset 1762 fcc406143e5b
parent 1760 ed2e2afb9573
child 1768 691083b5682a
equal deleted inserted replaced
1761:8c98bad90b8d 1762:fcc406143e5b
   160         #AppendMenu(parent, help='', id=wx.ID_HELP_CONTENTS,
   160         #AppendMenu(parent, help='', id=wx.ID_HELP_CONTENTS,
   161         #      kind=wx.ITEM_NORMAL, text=u'PLCOpen\tF2')
   161         #      kind=wx.ITEM_NORMAL, text=u'PLCOpen\tF2')
   162         #AppendMenu(parent, help='', id=wx.ID_HELP_CONTEXT,
   162         #AppendMenu(parent, help='', id=wx.ID_HELP_CONTEXT,
   163         #      kind=wx.ITEM_NORMAL, text=u'IEC 61131-3\tF3')
   163         #      kind=wx.ITEM_NORMAL, text=u'IEC 61131-3\tF3')
   164 
   164 
   165         handler = lambda event: {
   165         def handler(event):
   166             wx.MessageBox(version.GetCommunityHelpMsg(), _(u'Community support'), wx.OK | wx.ICON_INFORMATION)
   166             return wx.MessageBox(
   167         }
   167                 version.GetCommunityHelpMsg(),
       
   168                 _(u'Community support'),
       
   169                 wx.OK | wx.ICON_INFORMATION)
       
   170 
   168         id = wx.NewId()
   171         id = wx.NewId()
   169         parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
   172         parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
   170         self.Bind(wx.EVT_MENU, handler, id=id)
   173         self.Bind(wx.EVT_MENU, handler, id=id)
   171 
   174 
   172         AppendMenu(parent, help='', id=wx.ID_ABOUT,
   175         AppendMenu(parent, help='', id=wx.ID_ABOUT,