Changeset 6371c9c in sasview for sansview/perspectives/fitting
- Timestamp:
- May 18, 2011 3:12:22 PM (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:
- c6f2291
- Parents:
- 0160ecb
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r23cdeab r6371c9c 433 433 # best size for MAC and PC 434 434 if ON_MAC: 435 size_q = ( -1, -1)435 size_q = (20, -1) 436 436 else: 437 size_q = (20,15)437 size_q = (20, 15) 438 438 self.disp_help_bt = wx.Button(self,wx.NewId(),'?', 439 439 style = wx.BU_EXACTFIT, … … 997 997 if data == None and self.model_view.IsEnabled(): 998 998 if self.enable2D: 999 self.model_view.SetLabel(" Switch to 1D")999 self.model_view.SetLabel("2D Mode") 1000 1000 else: 1001 self.model_view.SetLabel(" Switch to 2D")1001 self.model_view.SetLabel("1D Mode") 1002 1002 # else: 1003 1003 -
sansview/perspectives/fitting/fitpage.py
rf22e626 r6371c9c 458 458 self.model_help.SetToolTipString("Model Function Help") 459 459 id = wx.NewId() 460 self.model_view = wx.Button(self, id," Switch to 2D", size=(80, 23))460 self.model_view = wx.Button(self, id,"1D Mode", size=(80, 23)) 461 461 self.model_view.Bind(wx.EVT_BUTTON, self._onModel2D, id=id) 462 462 hint = "toggle view of model from 1D to 2D or 2D from 1D" … … 2833 2833 toggle view of model from 1D to 2D or 2D from 1D 2834 2834 """ 2835 if self.model_view.GetLabelText() == " Switch to 2D":2836 self.model_view.SetLabel(" Switch to 1D")2835 if self.model_view.GetLabelText() == "1D Mode": 2836 self.model_view.SetLabel("2D Mode") 2837 2837 self.enable2D = True 2838 2838 2839 2839 else: 2840 self.model_view.SetLabel(" Switch to 2D")2840 self.model_view.SetLabel("1D Mode") 2841 2841 self.enable2D = False 2842 2842
Note: See TracChangeset
for help on using the changeset viewer.