Changeset 1117 for trunk/GSASII.py


Ignore:
Timestamp:
Oct 21, 2013 1:11:57 PM (9 years ago)
Author:
toby
Message:

update some menu labels; Add new multi-item selector; Add map export; misc export cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1115 r1117  
    110110    def _Add_FileMenuItems(self, parent):
    111111        item = parent.Append(
    112             help='Open a gsasii project file (*.gpx)', id=wx.ID_ANY,
     112            help='Open a GSAS-II project file (*.gpx)', id=wx.ID_ANY,
    113113            kind=wx.ITEM_NORMAL,text='&Open project...')
    114114        self.Bind(wx.EVT_MENU, self.OnFileOpen, id=item.GetId())
    115115        item = parent.Append(
    116             help='Save project to old file', id=wx.ID_ANY,
     116            help='Save project under current name', id=wx.ID_ANY,
    117117            kind=wx.ITEM_NORMAL,text='&Save project')
    118118        self.Bind(wx.EVT_MENU, self.OnFileSave, id=item.GetId())
    119119        item = parent.Append(
    120             help='Save project to new file', id=wx.ID_ANY,
    121             kind=wx.ITEM_NORMAL,text='Save As...')
     120            help='Save current project to new file', id=wx.ID_ANY,
     121            kind=wx.ITEM_NORMAL,text='Save project as...')
    122122        self.Bind(wx.EVT_MENU, self.OnFileSaveas, id=item.GetId())
    123123        item = parent.Append(
    124             help='Close project, saving is optional', id=wx.ID_ANY,
    125             kind=wx.ITEM_NORMAL,text='&Close project')
     124            help='Create empty new project, saving current is optional', id=wx.ID_ANY,
     125            kind=wx.ITEM_NORMAL,text='&New project')
    126126        self.Bind(wx.EVT_MENU, self.OnFileClose, id=item.GetId())
    127127        item = parent.Append(
    128             help='Exit from gsasii', id=wx.ID_ANY,
     128            help='Exit from GSAS-II', id=wx.ID_ANY,
    129129            kind=wx.ITEM_NORMAL,text='&Exit')
    130130        self.Bind(wx.EVT_MENU, self.OnFileExit, id=item.GetId())
     
    12351235        # each use allowing faster development
    12361236        # def DebugExport(event):
     1237        #     print 'start reload'
    12371238        #     reload(G2IO)
    1238         #     #import dev_export as dev
    1239         #     import G2export_csv as dev
     1239        #     import G2export_ASCIImap as dev
    12401240        #     reload(dev)
    1241         #     #dev.ExportTest(self).Exporter(event)
    1242         #     dev.ExportPowderCSV(self).Exporter(event)
    1243         #     dev.ExportPowderReflCSV(self).Exporter(event)
     1241        #     dev.ExportMapASCII(self).Exporter(event)
    12441242        # item = menu.Append(
    12451243        #     wx.ID_ANY,kind=wx.ITEM_NORMAL,
     
    12471245        # self.Bind(wx.EVT_MENU, DebugExport, id=item.GetId())
    12481246        # #self.ExportLookup[item.GetId()] = 'image'
    1249         # self.ExportLookup[item.GetId()] = 'powder'
    1250            
     1247        # self.ExportLookup[item.GetId()] = 'map'
     1248
    12511249    def _Add_ExportMenuItems(self,parent):
    12521250        item = parent.Append(
     
    22152213    def OnFileClose(self, event):
    22162214        '''Clears the data tree in response to the
    2217         File/Close Project menu button. User is given option to save
     2215        File/New Project menu button. User is given option to save
    22182216        the project.
    22192217        '''
Note: See TracChangeset for help on using the changeset viewer.