Changeset 6a8adb0 in sasview


Ignore:
Timestamp:
May 29, 2008 12:55:08 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
052a66bc
Parents:
ab6098f
Message:

Cleaned up dialogs

Location:
guitools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guitools/PropertyDialog.py

    rdfca3de r6a8adb0  
    77class Properties(wx.Dialog): 
    88    def __init__(self, parent, id, title): 
    9         wx.Dialog.__init__(self, parent, id, title, size=(350, 200)) 
     9        wx.Dialog.__init__(self, parent, id, "Select the scale of the graph", size=(350, 190)) 
    1010        """ 
    1111            for the properties window 
     
    1616        sizer = wx.GridBagSizer(5,0) 
    1717        vbox.Add(panel, 1, wx.EXPAND | wx.ALL) 
    18       
     18 
    1919        ix = 1 
    2020        iy = 1 
     
    3434        self.view =wx.ComboBox(panel, -1) 
    3535        sizer.Add(self.view,(iy,ix)) 
    36         ix =3 
    37         iy +=3 
    38         btCancel=wx.Button(panel, wx.ID_CANCEL,'Cancel' ) 
    39         sizer.Add(btCancel,(iy,ix)) 
    40         ix +=2 
    41         btOk = wx.Button(panel, wx.ID_OK, "Ok") 
    42         sizer.Add(btOk,(iy, ix)) 
     36         
     37        
     38        btCancel=wx.Button(self, wx.ID_CANCEL,'Cancel' ) 
     39        btOk = wx.Button(self, wx.ID_OK, "OK") 
     40 
     41        sizer_button = wx.BoxSizer(wx.HORIZONTAL) 
     42        sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
     43        sizer_button.Add(btOk, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 
     44        sizer_button.Add(btCancel, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10)         
     45        vbox.Add(sizer_button, 0, wx.EXPAND|wx.BOTTOM|wx.TOP, 10) 
     46  
    4347         
    4448        # scale value for x 
  • guitools/fitDialog.py

    r05da1f89 r6a8adb0  
    5656        self.tcChi.SetToolTipString("Chi^2 over degrees of freedom.") 
    5757        self.xminFit  = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 
    58         self.xminFit.SetToolTipString("Enter the minimum value on the axis to be included in the fit.") 
     58        self.xminFit.SetToolTipString("Enter the minimum value on the x-axis to be included in the fit.") 
    5959        self.xmaxFit  = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 
    60         self.xmaxFit.SetToolTipString("Enter the maximum value on the axis to be included in the fit.") 
     60        self.xmaxFit.SetToolTipString("Enter the maximum value on the x-axis to be included in the fit.") 
    6161        self.xminTransFit = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 
     62        self.xminTransFit.SetToolTipString("Minimum value on the x-axis for the plotted data.") 
    6263        self.xmaxTransFit = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 
     64        self.xmaxTransFit.SetToolTipString("Maximum value on the x-axis for the plotted data.") 
    6365        self.initXmin = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 
     66        self.initXmin.SetToolTipString("Minimum value available on the x-axis for the plotted data.") 
    6467        self.initXmax = wx.TextCtrl(self,-1,size=(_BOX_WIDTH,20)) 
     68        self.initXmax.SetToolTipString("Maximum value available on the x-axis for the plotted data.") 
    6569 
    6670        # Make the info box not editable 
     
    126130        iy += 1 
    127131        ix = 0 
    128         sizer.Add(wx.StaticText(self, -1, 'Plotted Range'),(iy, ix),(1,1),\ 
     132        sizer.Add(wx.StaticText(self, -1, 'Plotted range'),(iy, ix),(1,1),\ 
    129133                   wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    130134        ix +=1 
     
    136140        iy += 1 
    137141        ix = 0 
    138         sizer.Add(wx.StaticText(self, -1, 'Fit Range of '+self.xLabel),(iy, ix),(1,1),\ 
     142        sizer.Add(wx.StaticText(self, -1, 'Fit range of '+self.xLabel),(iy, ix),(1,1),\ 
    139143                   wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    140144        ix += 1 
     
    146150        iy += 1 
    147151        ix = 0 
    148         sizer.Add(wx.StaticText(self, -1, 'Fit Range of x'),(iy, ix),(1,1),\ 
     152        sizer.Add(wx.StaticText(self, -1, 'Fit range of x'),(iy, ix),(1,1),\ 
    149153                   wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    150154        ix += 1 
Note: See TracChangeset for help on using the changeset viewer.