Changeset 7303357 in sasview for src/sas/sasgui/perspectives/fitting/basepage.py
- Timestamp:
- Dec 1, 2017 6:03:15 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:
- 79c9ce5
- Parents:
- 19b5c886 (diff), eee94bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Paul Kienzle <pkienzle@…> (12/01/17 06:03:15)
- git-committer:
- GitHub <noreply@…> (12/01/17 06:03:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r3bd677b reee94bf 1643 1643 if item_page[2].__class__.__name__ == "ComboBox": 1644 1644 if item_page_info[2] in self.model.fun_list: 1645 fun_val = self.model.fun_list [item_page_info[2]]1645 fun_val = self.model.fun_list.index(item_page_info[2]) 1646 1646 self.model.setParam(item_page_info[1], fun_val) 1647 1647 if item_page[3] is not None: … … 1687 1687 selection = value 1688 1688 if value in self.model.fun_list: 1689 selection = self.model.fun_list [value]1689 selection = self.model.fun_list.index(value) 1690 1690 item_page[2].SetValue(selection) 1691 1691 self.model.setParam(param_name, selection) … … 3365 3365 if item[2].__class__.__name__ == "ComboBox": 3366 3366 if content[name][1] in self.model.fun_list: 3367 fun_val = self.model.fun_list [content[name][1]]3367 fun_val = self.model.fun_list.index(content[name][1]) 3368 3368 self.model.setParam(name, fun_val) 3369 3369 try: … … 3415 3415 if item[2].__class__.__name__ == "ComboBox": 3416 3416 if value[0] in self.model.fun_list: 3417 fun_val = self.model.fun_list [value[0]]3417 fun_val = self.model.fun_list.index(value[0]) 3418 3418 self.model.setParam(name, fun_val) 3419 3419 # save state
Note: See TracChangeset
for help on using the changeset viewer.