Changeset ad6b4e2 in sasview
- Timestamp:
- May 12, 2017 6:18:48 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 6011788
- Parents:
- d60da0c
- Location:
- src/sas/qtgui
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rd60da0c rad6b4e2 33 33 from sas.qtgui.Perspectives.Fitting.OptionsWidget import OptionsWidget 34 34 from sas.qtgui.Perspectives.Fitting.FitPage import FitPage 35 from sas.qtgui.Perspectives.Fitting.ViewDelegate import ModelViewDelegate 35 36 36 37 TAB_MAGNETISM = 4 … … 126 127 self.readCategoryInfo() 127 128 self.model_parameters = None 129 130 # Delegates for custom editing and display 131 self.lstParams.setItemDelegate(ModelViewDelegate(self)) 132 128 133 self.lstParams.setAlternatingRowColors(True) 129 134 stylesheet = """ -
src/sas/qtgui/Utilities/GuiUtils.py
rf7f5796 rad6b4e2 773 773 output = "%-5.3g" % value 774 774 return output.lstrip().rstrip() 775 776 def convertUnitToHTML(unit): 777 """ 778 Convert ASCII unit display into well rendering HTML 779 """ 780 if unit == "1/A": 781 return "Å<sup>-1</sup>" 782 elif unit == "1/cm": 783 return "cm<sup>-1</sup>" 784 elif unit == "Ang": 785 return "Å" 786 elif unit == "1e-6/Ang^2": 787 return "10<sup>-6</sup>/Å<sup>2</sup>" 788 elif unit == "inf": 789 return "∞" 790 elif unit == "-inf": 791 return "-∞" 792 else: 793 return unit
Note: See TracChangeset
for help on using the changeset viewer.