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) |