Changeset bfeb823 in sasview for src/sas/sasgui/perspectives/fitting
- Timestamp:
- Nov 30, 2017 11:18:07 AM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- eee94bf
- Parents:
- 0a9cbc3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
r3bd677b rbfeb823 1726 1726 and not self.temp_multi_functional: 1727 1727 return None 1728 # Get the func name list 1729 list = self.model.fun_list 1730 if len(list) == 0: 1731 return None 1732 # build function (combo)box 1733 ind = 0 1734 while(ind < len(list)): 1735 for key, val in list.items(): 1736 if val == ind: 1737 fun_box.Append(key, val) 1738 break 1739 ind += 1 1728 for index, choice in enumerate(self.model.fun_list): 1729 fun_box.Append(choice, index) 1740 1730 1741 1731 def _on_select_accuracy(self, event): … … 1765 1755 value = fun_box.GetValue() 1766 1756 if value in self.model.fun_list: 1767 fun_val = self.model.fun_list [value]1757 fun_val = self.model.fun_list.index(value) 1768 1758 1769 1759 self.model.setParam(name, fun_val)
Note: See TracChangeset
for help on using the changeset viewer.