Changeset e2f0554 in sasview for sansview/perspectives/fitting
- Timestamp:
- Mar 10, 2011 9:49:15 AM (14 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:
- fa65e99
- Parents:
- cab8143
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r8b6f489 re2f0554 467 467 self.minimum_q = BGTextCtrl(self, -1, size=(_BOX_WIDTH,20)) 468 468 self.minimum_q.SetValue(str(data_min)) 469 #self.minimum_q.SetEditable(False)470 469 self.maximum_q = BGTextCtrl(self, -1,size=(_BOX_WIDTH,20)) 471 470 self.maximum_q.SetValue(str(data_max)) 472 #self.maximum_q.SetEditable(False)473 471 sizer_range.Add(wx.StaticText(self, -1, "Min: "),0, wx.LEFT, 10) 474 472 sizer_range.Add(self.minimum_q,0, wx.LEFT, 10) … … 476 474 sizer_range.Add(self.maximum_q,0, wx.LEFT, 10) 477 475 id = wx.NewId() 478 self.model_view = wx.Button(self, id, 'View 2D', size=(80, 23))476 self.model_view = wx.Button(self, id,"Switch to 2D", size=(80, 23)) 479 477 self.model_view.Bind(wx.EVT_BUTTON, self._onModel2D, id=id) 480 478 hint = "toggle view of model from 1D to 2D or 2D from 1D" … … 1474 1472 self.default_mask = copy.deepcopy(self.data.mask) 1475 1473 1474 1476 1475 self.formfactorbox.Enable() 1477 1476 self.structurebox.Enable() … … 1490 1489 self.EditMask_title.Disable() 1491 1490 else: 1491 1492 1492 ## Minimum value of data 1493 1493 data_min = 0 … … 1514 1514 self.state.qmin = self.qmin_x 1515 1515 self.state.qmax = self.qmax_x 1516 1516 1517 #update model plot with new data information 1517 1518 if flag: 1519 #set model view button 1520 if self.data.__class__.__name__ == "Data2D": 1521 self.enable2D = True 1522 self.model_view.SetLabel("2D Mode") 1523 else: 1524 self.enable2D = False 1525 self.model_view.SetLabel("1D Mode") 1526 self.model_view.Disable() 1518 1527 self._draw_model() 1519 1528 … … 2626 2635 toggle view of model from 1D to 2D or 2D from 1D 2627 2636 """ 2628 if self.model_view.GetLabelText() == " View2D":2629 self.model_view.SetLabel(" View1D")2637 if self.model_view.GetLabelText() == "Switch to 2D": 2638 self.model_view.SetLabel("Switch to 1D") 2630 2639 self.enable2D = True 2631 2640 else: 2632 self.model_view.SetLabel(" View2D")2641 self.model_view.SetLabel("Switch to 2D") 2633 2642 self.enable2D = False 2634 2643 self._draw_model()
Note: See TracChangeset
for help on using the changeset viewer.