Changeset 6df015de in sasview for src/sas/sasgui/perspectives/fitting/basepage.py
- Timestamp:
- Oct 7, 2016 9:47:12 AM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7988501
- Parents:
- 1b82623
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r4c3be25 r6df015de 143 143 self.theory_qmin_x = None 144 144 self.theory_qmax_x = None 145 self.cb1 = None 145 146 self.btEditMask = None 146 147 self.btFit = None … … 474 475 self.sizer2 = wx.BoxSizer(wx.VERTICAL) 475 476 self.sizer3 = wx.BoxSizer(wx.VERTICAL) 477 self.sizerTrafo = wx.BoxSizer(wx.VERTICAL) 476 478 self.sizer4 = wx.BoxSizer(wx.VERTICAL) 477 479 self.sizer5 = wx.BoxSizer(wx.VERTICAL) … … 482 484 self.sizer2.SetMinSize((PANEL_WIDTH, -1)) 483 485 self.sizer3.SetMinSize((PANEL_WIDTH, -1)) 486 self.sizerTrafo.SetMinSize((PANEL_WIDTH, -1)) 484 487 self.sizer4.SetMinSize((PANEL_WIDTH, -1)) 485 488 self.sizer5.SetMinSize((PANEL_WIDTH, -1)) … … 490 493 self.vbox.Add(self.sizer2) 491 494 self.vbox.Add(self.sizer3) 495 self.vbox.Add(self.sizerTrafo) 492 496 self.vbox.Add(self.sizer4) 493 497 self.vbox.Add(self.sizer5) … … 1196 1200 # set data, etc. from the state 1197 1201 # reset page between theory and fitting from bookmarking 1202 #if state.data == None: 1203 # data = None 1204 #else: 1198 1205 data = state.data 1199 1206 … … 1221 1228 self.disp_cb_dict = state.disp_cb_dict 1222 1229 self.disp_list = state.disp_list 1230 1231 ## set the state of the radio box 1232 #self.shape_rbutton.SetValue(state.shape_rbutton) 1233 #self.shape_indep_rbutton.SetValue(state.shape_indep_rbutton) 1234 #self.struct_rbutton.SetValue(state.struct_rbutton) 1235 #self.plugin_rbutton.SetValue(state.plugin_rbutton) 1223 1236 1224 1237 ## fill model combobox … … 1276 1289 else: 1277 1290 self.model_view.SetLabel("1D Mode") 1291 1292 ## set the select all check box to the a given state 1293 self.cb1.SetValue(state.cb1) 1278 1294 1279 1295 ## reset state of checkbox,textcrtl and regular parameters value … … 1406 1422 logging.error(traceback.format_exc()) 1407 1423 1424 # Make sure the check box updated when all checked 1425 if self.cb1.GetValue(): 1426 self.select_all_param(None) 1427 1408 1428 def _selectDlg(self): 1409 1429 """ … … 1503 1523 else: 1504 1524 self.fitrange = False 1525 1526 if not self.data.is_data: 1527 is_modified = True 1505 1528 1506 1529 ## if any value is modify draw model with new value … … 1519 1542 self._draw_model() 1520 1543 self.Refresh() 1521 1522 logging.info("is_modified flag set to %g",is_modified)1523 1544 return is_modified 1524 1545 … … 2540 2561 item[2].Enable() 2541 2562 2542 # Make sure the check box updated 2543 self.get_all_checked_params() 2563 # Make sure the check box updated when all checked 2564 if self.cb1.GetValue(): 2565 #self.select_all_param(None) 2566 self.get_all_checked_params() 2544 2567 2545 2568 # update params … … 3696 3719 call back for model selection if implemented 3697 3720 """ 3721 def select_all_param(self, event): 3722 """ 3723 set to true or false all checkBox if implemented 3724 """ 3698 3725 def get_weight_flag(self): 3699 3726 """
Note: See TracChangeset
for help on using the changeset viewer.