Changeset ae4c139 in sasview for fittingview/src/sans/perspectives
- Timestamp:
- Sep 20, 2012 4:03:11 PM (12 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- c35e6901
- Parents:
- 1f73bd2
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
rea5fa58 rae4c139 2016 2016 m_list.append(self.model_dict[str_m]) 2017 2017 else: 2018 for (model, enabled) in self.master_category_dict[mod_cat]: 2018 cat_dic = self.master_category_dict[mod_cat] 2019 for (model, enabled) in cat_dic: 2019 2020 if enabled: 2020 2021 m_list.append(self.model_dict[model]) 2021 else:2022 msg = "This model is diabled by Category Manager."2023 wx.PostEvent(self.parent.parent,2024 StatusEvent(status=msg, info="error"))2022 #else: 2023 # msg = "This model is disabled by Category Manager." 2024 # wx.PostEvent(self.parent.parent, 2025 # StatusEvent(status=msg, info="error")) 2025 2026 except: 2026 2027 msg = "%s\n" % (sys.exc_value) … … 3457 3458 sizer_cat_box.SetMinSize((200, 50)) 3458 3459 self.categorybox = wx.ComboBox(self, -1, style=wx.CB_READONLY) 3460 self.categorybox.SetToolTip( wx.ToolTip("Select a Category/Type") ) 3459 3461 self._populate_listbox() 3460 3462 wx.EVT_COMBOBOX(self.categorybox, -1, self._show_combox) … … 3501 3503 3502 3504 self.formfactorbox = wx.ComboBox(self, -1, style=wx.CB_READONLY) 3505 self.formfactorbox.SetToolTip( wx.ToolTip("Select a Model") ) 3503 3506 if self.model != None: 3504 3507 self.formfactorbox.SetValue(self.model.name) -
fittingview/src/sans/perspectives/fitting/fitpage.py
rea5fa58 rae4c139 1889 1889 reset the state 1890 1890 """ 1891 self.reset_page_helper(state) 1892 1893 self.select_param(event=None) 1894 #Save state_fit 1895 self.save_current_state_fit() 1891 try: 1892 self.reset_page_helper(state) 1893 1894 self.select_param(event=None) 1895 #Save state_fit 1896 self.save_current_state_fit() 1897 except: 1898 self._show_combox_helper() 1899 msg = "Error: This model state has missing or outdated " 1900 msg += "information.\n" 1901 msg += "%s"% (sys.exc_value) 1902 wx.PostEvent(self.parent.parent, 1903 StatusEvent(status=msg, info="error")) 1896 1904 self._lay_out() 1897 1905 self.Refresh()
Note: See TracChangeset
for help on using the changeset viewer.