Changeset 3766


Ignore:
Timestamp:
Dec 18, 2018 11:56:16 AM (3 years ago)
Author:
vondreele
Message:

Add Absorb and Fprime to the main Calculate menu

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3761 r3766  
    525525        self.Refine.append(item)
    526526        self.Bind(wx.EVT_MENU, self.OnRefine, id=item.GetId())
     527
     528        item = parent.Append(wx.ID_ANY,'&Run Fprime','X-ray resonant scattering')
     529        self.Bind(wx.EVT_MENU, self.OnRunFprime, id=item.GetId())
     530        item = parent.Append(wx.ID_ANY,'&Run Absorb','x-ray absorption')
     531        self.Bind(wx.EVT_MENU, self.OnRunAbsorb, id=item.GetId())
    527532
    528533#        if GSASIIpath.GetConfigValue('debug'): # allow exceptions for debugging
     
    46254630        else:
    46264631            self.ErrorDialog('Sequential refinement error',Msg)
     4632           
     4633    def OnRunFprime(self,event):
     4634        import fprime
     4635        self.fprime = fprime.Fprime(None)
     4636        self.fprime.Show()
     4637       
     4638    def OnRunAbsorb(self,event):
     4639        import Absorb
     4640        self.absorb = Absorb.Absorb(None)
     4641        self.absorb.Show()
    46274642       
    46284643    def ErrorDialog(self,title,message,parent=None, wtype=wx.OK):
Note: See TracChangeset for help on using the changeset viewer.