Changeset 139
- Timestamp:
- Jul 31, 2010 5:30:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimgGUI.py
r134 r139 29 29 def OnNewCalibrant(event): 30 30 data['calibrant'] = calSel.GetValue() 31 limits = calFile.Calibrants[data['calibrant']][3] 32 data['pixLimit'] = limits[1] 33 pixLimit.SetValue(str(limits[1])) 34 data['cutoff'] = limits[2] 35 cutOff.SetValue('%.1f'%(limits[2])) 31 36 32 37 def OnPixLimit(event): 33 38 data['pixLimit'] = int(pixLimit.GetValue()) 39 40 def OnCutOff(event): 41 try: 42 cutoff = float(cutOff.GetValue()) 43 data['cutoff'] = cutoff 44 except ValueError: 45 pass 46 cutOff.SetValue("%.1f"%(data['cutoff'])) #reset in case of error 34 47 35 48 def OnMaxSlider(event): … … 79 92 pass 80 93 waveSel.SetValue("%6.5f" % (data['wavelength'])) #reset in case of error 81 82 def OnCutOff(event):83 try:84 cutoff = float(cutOff.GetValue())85 data['cutoff'] = cutoff86 except ValueError:87 pass88 cutOff.SetValue("%.1f"%(data['cutoff'])) #reset in case of error89 94 90 95 def OnShowLines(event):
Note: See TracChangeset
for help on using the changeset viewer.