Changeset 00561739 in sasview for sansview/perspectives/fitting/simfitpage.py
- Timestamp:
- Sep 29, 2008 9:37:15 AM (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:
- fa9674b
- Parents:
- 4ab1c91
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/simfitpage.py
r442895f r00561739 44 44 45 45 self.ctl2 = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE) 46 self.ctl2.Bind(wx.EVT_KILL_FOCUS, self._onTextEnter)47 self.ctl2.Bind(wx.EVT_TEXT_ENTER, self._onTextEnter)46 #self.ctl2.Bind(wx.EVT_KILL_FOCUS, self._onTextEnter) 47 #self.ctl2.Bind(wx.EVT_TEXT_ENTER, self._onTextEnter) 48 48 self.sizer2.Add(self.ctl2, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 49 49 … … 65 65 def onFit(self,event): 66 66 """ signal for fitting""" 67 self._onTextEnter() 67 68 if len(self.model_toFit) >0 : 68 69 if len(self.params)>0: … … 75 76 wx.PostEvent(self.parent.GrandParent, StatusEvent(status=\ 76 77 "Select at least on model to fit ")) 78 79 77 80 def set_manager(self, manager): 78 81 """ … … 105 108 @param page_finder: the dictionary containing models information 106 109 """ 107 import copy110 108 111 self.model_list=[] 109 112 self.model_toFit=[] … … 206 209 207 210 208 def _onTextEnter(self,event): 211 #def _onTextEnter(self,event): 212 def _onTextEnter(self): 209 213 """ 210 214 get values from the constrainst textcrtl ,parses them into model name … … 225 229 self.params.append(self.parser_helper(item)) 226 230 except: 227 wx.PostEvent(self.parent.GrandParent, StatusEvent(status=" LoadingError: %s" % sys.exc_value))231 wx.PostEvent(self.parent.GrandParent, StatusEvent(status="Constraint Error: %s" % sys.exc_value)) 228 232 else: 229 233 try: 230 234 self.params.append(self.parser_helper(value)) 231 235 except: 232 wx.PostEvent(self.parent.GrandParent, StatusEvent(status=" LoadingError: %s" % sys.exc_value))236 wx.PostEvent(self.parent.GrandParent, StatusEvent(status="Constraint Error: %s" % sys.exc_value)) 233 237 except: 234 238 raise … … 253 257 model_name=param_names[0] 254 258 param_name=param_names[1] 255 param=[str(model_name),str(param_name),str(param_value)] 259 ##### just added 260 if string.find(param_name,".")!=-1: 261 ######## 262 param_new_name= re.split("\.",param_name) 263 else: 264 param_new_name= param_name 265 print "simfitpage: param name",param_new_name 266 param=[str(model_name),str(param_new_name[1]),str(param_value)] 256 267 #print "simfitpage: param",param 257 268 return param
Note: See TracChangeset
for help on using the changeset viewer.