Changeset 1f3655a in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
Jan 23, 2009 6:33:11 PM (16 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:
836fe6e
Parents:
8296ff5
Message:

disable controlbox for slicerpanel and boxsum limits changed

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/boxSum.py

    r54cc36a r1f3655a  
    2929        self.qmax = self.base.data2D.xmax 
    3030        self.connect = self.base.connect 
    31          
    32         self.xmin= -1* x_min 
    33         self.ymin= -1* y_min 
    34         self.xmax= x_max 
    35         self.ymax=  y_max 
     31        self.xmin= -1* 0.5*min(math.fabs(self.base.data2D.xmax),math.fabs( self.base.data2D.xmin)) 
     32        self.ymin= -1* 0.5*min(math.fabs(self.base.data2D.xmax),math.fabs( self.base.data2D.xmin)) 
     33        #self.xmax= x_max 
     34        #self.ymax=  y_max 
     35        self.xmax= 0.5*min(math.fabs(self.base.data2D.xmax),math.fabs( self.base.data2D.xmin)) 
     36        self.ymax=  0.5*min(math.fabs(self.base.data2D.xmax),math.fabs( self.base.data2D.xmin)) 
    3637        # center of the figure 
    37         self.center_x= 0.002 
    38         self.center_y= 0.003 
     38        self.center_x= 0.0002 
     39        self.center_y= 0.0003 
    3940        
    4041        ## Number of points on the plot 
  • guiframe/local_perspectives/plotting/slicerpanel.py

    r54cc36a r1f3655a  
    8787                 
    8888                ctl.SetValue(str(params[item])) 
     89                ctl.Disable() 
    8990                self.Bind(wx.EVT_TEXT_ENTER, self.onTextEnter) 
    9091                ctl.Bind(wx.EVT_KILL_FOCUS, self.onTextEnter) 
     
    129130                item[1].SetBackgroundColour("pink") 
    130131                item[1].Refresh() 
    131  
     132             
    132133        if has_error==False: 
    133134            # Post parameter event 
     135            print "post new param" 
    134136            event = SlicerParameterEvent(type=self.type, params=params) 
    135137            wx.PostEvent(self.parent, event) 
     138            print "self parent ", self.parent 
    136139         
Note: See TracChangeset for help on using the changeset viewer.