Changeset 6e01f06 in sasview for fittingview/src
- Timestamp:
- Dec 20, 2011 7:30:27 PM (13 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:
- ed8fa6a3
- Parents:
- b025572
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
r7c8d3093 r6e01f06 23 23 import models 24 24 import fitpage 25 26 25 27 26 from sans.dataloader.loader import Loader … … 43 42 from .pagestate import Reader 44 43 from .fitpage import Chi2UpdateEvent 44 from .fitting_widgets import TextDialog 45 45 46 46 MAX_NBR_DATA = 4 … … 256 256 model_list = model_manager.get_model_name_list() 257 257 258 from sans.perspectives.fitting.fitting_widgets import TextDialog259 258 textdial = TextDialog(None, -1, 'Easy Custom Sum(p1,p2)', model_list) 260 259 self.put_icon(textdial) … … 278 277 page.formfactorbox.SetSelection(pos) 279 278 page.formfactorbox.SetValue(current_val) 280 #wx.CallAfter(textdial.delete_file, fname)281 279 except: 282 280 raise -
fittingview/src/sans/perspectives/fitting/fitting_widgets.py
r7c8d3093 r6e01f06 217 217 # default 218 218 self.model_list = model_list 219 self.model1_string = "SphereModel" 220 self.model2_string = "CylinderModel" 219 221 self._build_sizer() 220 222 self.model1_name = str(self.model1.GetValue()) … … 243 245 self.model2.SetToolTipString("model2") 244 246 self._set_model_list() 245 self.model1.SetSelection(0) 246 self.model2.SetSelection(1) 247 247 248 # Buttons on the bottom 248 249 self.static_line_1 = wx.StaticLine(self, -1) … … 294 295 self.model1.Append(list[idx],idx) 295 296 self.model2.Append(list[idx],idx) 297 self.model1.SetStringSelection(self.model1_string) 298 self.model2.SetStringSelection(self.model2_string) 296 299 297 300 def on_model1(self, event): … … 301 304 event.Skip() 302 305 self.model1_name = str(self.model1.GetValue()) 306 self.model1_string = self.model1_name 303 307 304 308 def on_model2(self, event): … … 308 312 event.Skip() 309 313 self.model2_name = str(self.model2.GetValue()) 314 self.model2_string = self.model2_name 310 315 311 316 def getText(self):
Note: See TracChangeset
for help on using the changeset viewer.