Changeset 4092
- Timestamp:
- Aug 12, 2019 3:55:40 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4089 r4092 2762 2762 #===================================================================================== 2763 2763 if not new: 2764 G2frame.xylim = limits2764 G2frame.xylim = copy.copy(limits) 2765 2765 else: 2766 2766 if plottype in ['SASD','REFD']: -
trunk/GSASIIpwdGUI.py
r4086 r4092 4968 4968 def OnAddSubstance(event): 4969 4969 dlg = wx.TextEntryDialog(None,'Enter a name for this substance','Substance Name Entry','New substance', 4970 style=wx.OK )4970 style=wx.OK|wx.CANCEL) 4971 4971 if dlg.ShowModal() == wx.ID_OK: 4972 4972 Name = dlg.GetValue() 4973 4973 data['Substances'][Name] = {'Elements':{},'Volume':1.0,'Density':1.0, 4974 'Scatt density':0.0,'XAnom density':0.,'XAbsorption':0. }4974 'Scatt density':0.0,'XAnom density':0.,'XAbsorption':0.,'XImag density':0.} 4975 4975 AddElement(Name) 4976 else: 4977 return 4976 4978 dlg.Destroy() 4979 if not data['Substances'][Name]['XAbsorption']: 4980 del data['Substances'][Name] 4977 4981 UpdateSubstanceGrid(G2frame,data) 4978 4982 … … 5039 5043 data['Substances'][name]['XAbsorption'] = absorb 5040 5044 data['Substances'][name]['XImag density'] = imcontrst 5045 else: 5046 return 5041 5047 dlg.Destroy() 5042 5048 … … 5784 5790 sldrObj.SetValue(slMult*logv) 5785 5791 G2sasd.ModelFxn(Profile,ProfDict,Limits,Sample,data) 5786 RefreshPlots( )5792 RefreshPlots(True) 5787 5793 5788 5794 def OnSelect(event): … … 5800 5806 wx.CallAfter(UpdateModelsGrid,G2frame,data) 5801 5807 G2sasd.ModelFxn(Profile,ProfDict,Limits,Sample,data) 5802 RefreshPlots( )5808 RefreshPlots(True) 5803 5809 5804 5810 def OnDelLevel(event): … … 5808 5814 wx.CallAfter(UpdateModelsGrid,G2frame,data) 5809 5815 G2sasd.ModelFxn(Profile,ProfDict,Limits,Sample,data) 5810 RefreshPlots( )5816 RefreshPlots(True) 5811 5817 5812 5818 def OnParmSlider(event): … … 5821 5827 pvObj.SetValue('%.3g'%(item[key][0])) 5822 5828 G2sasd.ModelFxn(Profile,ProfDict,Limits,Sample,data) 5823 RefreshPlots( )5829 RefreshPlots(True) 5824 5830 5825 5831 def SizeSizer():
Note: See TracChangeset
for help on using the changeset viewer.