Changeset 77a43fb in sasview for fittingview/src/sans/perspectives/fitting
- Timestamp:
- Sep 28, 2011 11:08:12 AM (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:
- c6cc2910
- Parents:
- b1bda35
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/simfitpage.py
re1a97f8 r77a43fb 180 180 ## display constraint fields 181 181 if self.show_constraint.GetValue(): 182 self._show_all_constraint() 182 183 self._show_constraint() 183 184 return … … 208 209 if self.show_constraint.GetValue() and\ 209 210 len(self.constraints_list)==0: 211 self._show_all_constraint() 210 212 self._show_constraint() 211 213 elif len(self.model_toFit)< 2: … … 463 465 wx.EVT_COMBOBOX(param_cbox,-1, self._on_select_param) 464 466 self.ctl2 = wx.TextCtrl(self, -1) 465 egal_txt= wx.StaticText(self,-1," = ") 466 btRemove = wx.Button(self,wx.NewId(),'Remove') 467 btRemove.Bind(wx.EVT_BUTTON, self.onRemove,id= btRemove.GetId()) 468 btRemove.SetToolTipString("Remove constraint.") 469 467 egal_txt= wx.StaticText(self,-1, " = ") 468 self.btRemove = wx.Button(self,wx.NewId(),'Remove') 469 self.btRemove.Bind(wx.EVT_BUTTON, self.onRemove, 470 id=self.btRemove.GetId()) 471 self.btRemove.SetToolTipString("Remove constraint.") 472 self.btRemove.Hide() 473 if hasattr(self,"btAdd"): 474 self.btAdd.Hide() 470 475 for id, model in self.constraint_dict.iteritems(): 471 476 ## check if all parameters have been selected for constraint … … 482 487 sizer_constraint.Add(egal_txt, flag= wx.RIGHT|wx.EXPAND,border=5) 483 488 sizer_constraint.Add(self.ctl2, flag= wx.RIGHT|wx.EXPAND,border=10) 484 sizer_constraint.Add( btRemove, flag= wx.RIGHT|wx.EXPAND,border=10)489 sizer_constraint.Add(self.btRemove, flag= wx.RIGHT|wx.EXPAND,border=10) 485 490 486 491 self.sizer_constraints.Insert(before=self.nb_constraint, 487 488 492 item=sizer_constraint, flag= wx.TOP|wx.BOTTOM|wx.EXPAND, 493 border=5) 489 494 ##[combobox1, combobox2,=,textcrtl, remove button ] 490 self.constraints_list.append([model_cbox, param_cbox, egal_txt, self.ctl2,btRemove,sizer_constraint]) 495 self.constraints_list.append([model_cbox, param_cbox, egal_txt, 496 self.ctl2,self.btRemove,sizer_constraint]) 491 497 492 498 self.nb_constraint += 1 … … 538 544 539 545 param_cbox.Show(True) 546 self.btRemove.Show(True) 547 self.btAdd.Show(True) 540 548 self.sizer2.Layout() 541 549 #self.SetScrollbars(20,20,25,65)
Note: See TracChangeset
for help on using the changeset viewer.