Changeset bb7d8a4 in sasview for sansview/perspectives
- Timestamp:
- Mar 26, 2009 1:54:37 PM (16 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:
- a911b48
- Parents:
- dfae8b3
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rb28717b rbb7d8a4 450 450 param_name = item[0] 451 451 ## check if constraint 452 if param_value !=None :452 if param_value !=None and param_name != None: 453 453 new_model.parameterset[ param_name].set( param_value ) 454 454 -
sansview/perspectives/fitting/simfitpage.py
r8bd4dc0 rbb7d8a4 99 99 if event.GetId()==item[length-2].GetId(): 100 100 sizer= item[length-1] 101 sizer.Clear(True) 101 102 self.sizer_constraints.Remove(sizer) 102 self.sizer_constraints.Layout()103 #self.sizer_constraints.Layout() 103 104 self.sizer2.Layout() 104 105 self.SetScrollbars(20,20,200,100) … … 537 538 param = item[1].GetString(item[1].GetCurrentSelection()) 538 539 constraint = item[3].GetValue().lstrip().rstrip() 540 if param.lstrip().rstrip()=="": 541 param= None 542 msg= " Constraint will be ignored!. missing parameters in combobox" 543 msg+= " to set constraint! " 544 wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 545 539 546 if model in self.constraint_dict.keys(): 540 547 page = self.constraint_dict[model] 541 548 if constraint == "": 549 msg= " Constraint will be ignored!. missing value in textcrtl" 550 msg+= " to set constraint! " 551 wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 542 552 constraint = None 543 553
Note: See TracChangeset
for help on using the changeset viewer.