PLCOpenEditor.py
changeset 1742 92932cd370a4
parent 1741 dd94b9a68c61
child 1744 69dfdb26f600
equal deleted inserted replaced
1741:dd94b9a68c61 1742:92932cd370a4
   104             else:
   104             else:
   105                 event(self, function)
   105                 event(self, function)
   106 
   106 
   107     def _init_coll_FileMenu_Items(self, parent):
   107     def _init_coll_FileMenu_Items(self, parent):
   108         AppendMenu(parent, help='', id=wx.ID_NEW,
   108         AppendMenu(parent, help='', id=wx.ID_NEW,
   109               kind=wx.ITEM_NORMAL, text=_(u'New') +'\tCTRL+N')
   109               kind=wx.ITEM_NORMAL, text=_(u'New') + '\tCTRL+N')
   110         AppendMenu(parent, help='', id=wx.ID_OPEN,
   110         AppendMenu(parent, help='', id=wx.ID_OPEN,
   111               kind=wx.ITEM_NORMAL, text=_(u'Open') + '\tCTRL+O')
   111               kind=wx.ITEM_NORMAL, text=_(u'Open') + '\tCTRL+O')
   112         AppendMenu(parent, help='', id=wx.ID_CLOSE,
   112         AppendMenu(parent, help='', id=wx.ID_CLOSE,
   113               kind=wx.ITEM_NORMAL, text=_(u'Close Tab') + '\tCTRL+W')
   113               kind=wx.ITEM_NORMAL, text=_(u'Close Tab') + '\tCTRL+W')
   114         AppendMenu(parent, help='', id=wx.ID_CLOSE_ALL,
   114         AppendMenu(parent, help='', id=wx.ID_CLOSE_ALL,
   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         handler = lambda event: {
   166             wx.MessageBox(version.GetCommunityHelpMsg(), _(u'Community support'), wx.OK | wx.ICON_INFORMATION)
   166             wx.MessageBox(version.GetCommunityHelpMsg(), _(u'Community support'), wx.OK | wx.ICON_INFORMATION)
   167         }
   167         }
   168         id = wx.NewId()
   168         id = wx.NewId()
   169         parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
   169         parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
   170         self.Bind(wx.EVT_MENU, handler, id=id)
   170         self.Bind(wx.EVT_MENU, handler, id=id)