Changes in src/sas/sasgui/perspectives/fitting/fitpage.py [79e6a33:48154abb] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
r79e6a33 r48154abb 289 289 self.btFitHelp.SetToolTipString("General fitting help.") 290 290 self.btFitHelp.Bind(wx.EVT_BUTTON, self._onFitHelp) 291 291 292 292 # Resolution Smearing Help button (for now use same technique as 293 293 # used for dI help to get tiniest possible button that works … … 303 303 self.btSmearHelp.SetToolTipString("Resolution smearing help.") 304 304 self.btSmearHelp.Bind(wx.EVT_BUTTON, self._onSmearHelp) 305 305 306 306 # textcntrl for custom resolution 307 307 self.smear_pinhole_percent = ModelTextCtrl(self, wx.ID_ANY, … … 564 564 sizer.Add(self.draw_button, 0, 0) 565 565 sizer.Add((-1, 5)) 566 566 567 567 sizer.Add(self.tcChi, 0, 0) 568 568 sizer.Add(self.Npts_fit, 0, 0) … … 570 570 sizer.Add(self.btFit, 0, 0) 571 571 sizer.Add(self.btFitHelp, 0, 0) 572 572 573 573 boxsizer_range.Add(sizer_chi2) 574 574 boxsizer_range.Add(sizer) … … 1243 1243 wx.PostEvent(self.parent, new_event) 1244 1244 # update list of plugins if new plugin is available 1245 custom_model = CUSTOM_MODEL1246 1245 mod_cat = self.categorybox.GetStringSelection() 1247 if mod_cat == custom_model: 1246 if mod_cat == CUSTOM_MODEL: 1247 temp_id = self.model.id 1248 1248 temp = self.parent.update_model_list() 1249 for v in self.parent.model_dictionary.values(): 1250 if v.id == temp_id: 1251 self.model = v() 1252 break 1249 1253 if temp: 1250 1254 self.model_list_box = temp … … 2038 2042 # Save state_fit 2039 2043 self.save_current_state_fit() 2044 self.onSmear(None) 2045 self._onDraw(None) 2040 2046 except: 2041 2047 self._show_combox_helper() … … 2188 2194 self.save_current_state() 2189 2195 2196 if not self.is_mac: 2197 self.Layout() 2198 self.Refresh() 2190 2199 # plot model ( when drawing, do not update chisqr value again) 2191 2200 self._draw_model(update_chisqr=False, source='fit') … … 2782 2791 else: 2783 2792 return cmp(a.lower(), b.lower()) 2784 2793 2785 2794 # keys obtained now from ordered dict, so commenting alphabetical 2786 2795 # ordering keys.sort(custom_compare)
Note: See TracChangeset
for help on using the changeset viewer.