Added standard keyboard shortcuts for opening and saving files

This commit is contained in:
Christophe Kamphaus 2016-02-28 23:21:24 +01:00
parent 94f7b2ce43
commit b386274738

View File

@ -159,8 +159,8 @@ class MainWindow(wx.Frame):
def CreateMenus(self):
menuBar = wx.MenuBar()
self.CreateMenu(menuBar, '&File', [
(wx.ID_OPEN, '&Open', 'Open a new file', self.OnOpen),
(wx.ID_SAVE, '&Save', 'Save the current file', self.OnSave),
(wx.ID_OPEN, '&Open\tCTRL-O', 'Open a new file', self.OnOpen),
(wx.ID_SAVE, '&Save\tCTRL-S', 'Save the current file', self.OnSave),
(wx.ID_SAVEAS, 'Save &As', 'Save the file under a different name',
self.OnSaveAs),
(None, None, None, None),