Changeset 6371c9c in sasview for sansview


Ignore:
Timestamp:
May 18, 2011 5:12:22 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

changed size and label of some buttons

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    r23cdeab r6371c9c  
    433433        # best size for MAC and PC 
    434434        if ON_MAC: 
    435             size_q = (-1, -1)      
     435            size_q = (20, -1)       
    436436        else: 
    437             size_q =  (20,15)     
     437            size_q = (20, 15)     
    438438        self.disp_help_bt = wx.Button(self,wx.NewId(),'?',  
    439439                                      style = wx.BU_EXACTFIT, 
     
    997997        if data == None and self.model_view.IsEnabled(): 
    998998            if self.enable2D: 
    999                 self.model_view.SetLabel("Switch to 1D") 
     999                self.model_view.SetLabel("2D Mode") 
    10001000            else: 
    1001                 self.model_view.SetLabel("Switch to 2D") 
     1001                self.model_view.SetLabel("1D Mode") 
    10021002        # else: 
    10031003                 
  • sansview/perspectives/fitting/fitpage.py

    rf22e626 r6371c9c  
    458458        self.model_help.SetToolTipString("Model Function Help") 
    459459        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)) 
    461461        self.model_view.Bind(wx.EVT_BUTTON, self._onModel2D, id=id) 
    462462        hint = "toggle view of model from 1D to 2D  or 2D from 1D" 
     
    28332833        toggle view of model from 1D to 2D  or 2D from 1D 
    28342834        """ 
    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") 
    28372837            self.enable2D = True 
    28382838               
    28392839        else: 
    2840             self.model_view.SetLabel("Switch to 2D") 
     2840            self.model_view.SetLabel("1D Mode") 
    28412841            self.enable2D = False 
    28422842 
Note: See TracChangeset for help on using the changeset viewer.