PLCOpenEditor.py
branchsvghmi
changeset 3246 0e8dbc2c390e
parent 2532 b9d6f5d7e0f1
child 3570 eb915a9fdcb0
equal deleted inserted replaced
3245:c441181247cf 3246:0e8dbc2c390e
   138             return wx.MessageBox(
   138             return wx.MessageBox(
   139                 version.GetCommunityHelpMsg(),
   139                 version.GetCommunityHelpMsg(),
   140                 _(u'Community support'),
   140                 _(u'Community support'),
   141                 wx.OK | wx.ICON_INFORMATION)
   141                 wx.OK | wx.ICON_INFORMATION)
   142 
   142 
   143         id = wx.NewId()
   143         menu_entry = parent.Append(help='', id=wx.ID_ANY, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
   144         parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
   144         self.Bind(wx.EVT_MENU, handler, menu_entry)
   145         self.Bind(wx.EVT_MENU, handler, id=id)
       
   146 
   145 
   147         AppendMenu(parent, help='', id=wx.ID_ABOUT,
   146         AppendMenu(parent, help='', id=wx.ID_ABOUT,
   148                    kind=wx.ITEM_NORMAL, text=_(u'About'))
   147                    kind=wx.ITEM_NORMAL, text=_(u'About'))
   149         self.Bind(wx.EVT_MENU, self.OnPLCOpenEditorMenu, id=wx.ID_HELP)
   148         self.Bind(wx.EVT_MENU, self.OnPLCOpenEditorMenu, id=wx.ID_HELP)
   150         # self.Bind(wx.EVT_MENU, self.OnPLCOpenMenu, id=wx.ID_HELP_CONTENTS)
   149         # self.Bind(wx.EVT_MENU, self.OnPLCOpenMenu, id=wx.ID_HELP_CONTENTS)