Changeset d490a02 in sasview for guitools


Ignore:
Timestamp:
Apr 3, 2008 12:55:23 PM (17 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
1bde57a
Parents:
f63f5ff
Message:

increase the size of the text fields on fitdialog

Location:
guitools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    rf63f5ff rd490a02  
    411411            @param dx: float value 
    412412        """ 
    413         if dx >=x: 
     413        if math.fabs(dx) >= math.fabs(x): 
    414414            return math.fabs(0.9*x) 
    415415        if dx==None: 
     
    424424        if  dx != None: 
    425425            err = 2*x*dx 
    426             if err >= x: 
     426            if math.fabs(err) >= math.fabs(x): 
    427427                err = 0.9*x 
    428428            return math.fabs(err) 
     
    440440            else: 
    441441                err = 0 
    442             if err >= x: 
     442            if math.fabs(err) >= math.fabs(x): 
    443443                err = 0.9*x     
    444444        else: 
     
    459459            else: 
    460460                err = dx/x 
    461             if err >= x: 
     461            if math.fabs(err) >= math.fabs(x): 
    462462                err = 0.9*x 
    463463        else: 
  • guitools/fitDialog.py

    rf63f5ff rd490a02  
    3131        self.tcErrB = wx.TextCtrl(panel, -1,size=(120,20),style=wx.SIMPLE_BORDER) 
    3232        self.tcChi = wx.TextCtrl(panel, -1,size=(120,20),style=wx.SIMPLE_BORDER) 
    33         self.tcXmin = wx.TextCtrl(panel,-1,style=wx.SIMPLE_BORDER) 
    34         self.tcXmax = wx.TextCtrl(panel,-1,style=wx.SIMPLE_BORDER) 
     33        self.tcXmin = wx.TextCtrl(panel,-1,size=(120,20),style=wx.SIMPLE_BORDER) 
     34        self.tcXmax = wx.TextCtrl(panel,-1,size=(120,20),style=wx.SIMPLE_BORDER) 
    3535        self.btFit =wx.Button(panel,-1,'Fit' ) 
    3636        btClose =wx.Button(panel, wx.ID_CANCEL,'Close' ) 
Note: See TracChangeset for help on using the changeset viewer.