Changeset 1971 for trunk/GSASII.py


Ignore:
Timestamp:
Sep 7, 2015 1:25:13 PM (6 years ago)
Author:
toby
Message:

Add preferences option to edit configuration options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1970 r1971  
    16181618            refList[generalData['Name']] = []
    16191619        return # success
     1620       
     1621    def OnPreferences(self,event):
     1622        'Edit the GSAS-II configuration variables'
     1623        dlg = G2G.SelectConfigSetting(self)
     1624        dlg.ShowModal() == wx.ID_OK
     1625        dlg.Destroy()
    16201626
    16211627    def _Add_ImportMenu_smallangle(self,parent):
     
    20182024        self._Add_ImportMenu_Sfact(Import)
    20192025        self._Add_ImportMenu_smallangle(Import)
     2026        item = File.Append(wx.ID_PREFERENCES, text = "&Preferences")
     2027        self.Bind(wx.EVT_MENU, self.OnPreferences, item)
     2028
    20202029        #======================================================================
    20212030        # Code to help develop/debug an importer, much is hard-coded below
Note: See TracChangeset for help on using the changeset viewer.