Changeset 814 for trunk/GSASII.py


Ignore:
Timestamp:
Dec 12, 2012 3:26:21 PM (9 years ago)
Author:
vondreele
Message:

implement hot keys for some main menu & menu items
fix crash in general
put a status item in as a reminder for peak fitting options
continue restraint development

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r812 r814  
    105105        item = parent.Append(
    106106            help='Open a gsasii project file (*.gpx)', id=wx.ID_ANY,
    107             kind=wx.ITEM_NORMAL,text='Open project...')
     107            kind=wx.ITEM_NORMAL,text='&Open project...')
    108108        self.Bind(wx.EVT_MENU, self.OnFileOpen, id=item.GetId())
    109109        item = parent.Append(
    110110            help='Save project to old file', id=wx.ID_ANY,
    111             kind=wx.ITEM_NORMAL,text='Save project')
     111            kind=wx.ITEM_NORMAL,text='&Save project')
    112112        self.Bind(wx.EVT_MENU, self.OnFileSave, id=item.GetId())
    113113        item = parent.Append(
     
    117117        item = parent.Append(
    118118            help='Close project, saving is optional', id=wx.ID_ANY,
    119             kind=wx.ITEM_NORMAL,text='Close project')
     119            kind=wx.ITEM_NORMAL,text='&Close project')
    120120        self.Bind(wx.EVT_MENU, self.OnFileClose, id=item.GetId())
    121121        item = parent.Append(
    122122            help='Exit from gsasii', id=wx.ID_ANY,
    123             kind=wx.ITEM_NORMAL,text='Exit')
     123            kind=wx.ITEM_NORMAL,text='&Exit')
    124124        self.Bind(wx.EVT_MENU, self.OnFileExit, id=item.GetId())
    125125       
     
    174174       
    175175        item = parent.Append(help='View least squares parameters',
    176             id=wx.ID_ANY, kind=wx.ITEM_NORMAL,text='View LS parms')
     176            id=wx.ID_ANY, kind=wx.ITEM_NORMAL,text='&View LS parms')
    177177        self.Bind(wx.EVT_MENU, self.OnViewLSParms, id=item.GetId())
    178178       
    179179        item = parent.Append(help='', id=wx.ID_ANY, kind=wx.ITEM_NORMAL,
    180             text='Refine')
     180            text='&Refine')
    181181        self.Refine.append(item)
    182182        item.Enable(False)
     
    989989        '''
    990990        File = wx.Menu(title='')
    991         menubar.Append(menu=File, title='File')
     991        menubar.Append(menu=File, title='&File')
    992992        self._Add_FileMenuItems(File)
    993993        Data = wx.Menu(title='')
Note: See TracChangeset for help on using the changeset viewer.