Ignore:
Timestamp:
Oct 21, 2011 2:17:13 PM (13 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:
3ecaa2b
Parents:
054f004
Message:

working on layout mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/src/sans/perspectives/invariant/invariant_details.py

    rf6518f8 r9cec2dd  
    2828    FONT_VARIANT = 1 
    2929     
     30ERROR_COLOR = wx.Colour(255,  0, 0, 128) 
     31EXTRAPOLATION_COLOR = wx.Colour(169,  169, 168, 128) 
     32INVARIANT_COLOR =  wx.Colour(67,  208,  128, 128)     
     33   
    3034   
    3135class InvariantContainer(wx.Object): 
     
    197201        
    198202        #Default color the extrapolation bar is grey 
    199         self.extrapolation_color_low = wx.Colour(169,  169, 168, 128) 
    200         self.extrapolation_color_high = wx.Colour(169,  169, 168, 128) 
    201         self.invariant_color = wx.Colour(67,  208,  128, 128) 
     203        self.extrapolation_color_low = EXTRAPOLATION_COLOR 
     204        self.extrapolation_color_high = EXTRAPOLATION_COLOR 
     205        self.invariant_color = INVARIANT_COLOR 
    202206        #change color of high and low bar when necessary 
    203207        self.set_color_bar() 
     
    420424        Change the color for low and high bar when necessary 
    421425        """ 
    422         ERROR_COLOR = wx.Colour(255,  0, 0, 128) 
     426        self.extrapolation_color_low = EXTRAPOLATION_COLOR 
     427        self.extrapolation_color_high = EXTRAPOLATION_COLOR 
     428        self.invariant_color = INVARIANT_COLOR 
    423429        #warning to the user when the extrapolated invariant is greater than %5 
    424430        if self.low_scale >= 0.05 or self.low_scale > 1 or self.low_scale < 0: 
     
    426432        if self.high_scale >= 0.05 or self.high_scale > 1 or self.high_scale < 0: 
    427433            self.extrapolation_color_high = ERROR_COLOR  
    428         if self.inv_scale >= 0.05 or self.inv_scale > 1 or self.inv_scale < 0: 
     434        if self.inv_scale > 1 or self.inv_scale < 0: 
    429435            self.invariant_color = ERROR_COLOR   
    430              
     436     
    431437    def on_close(self, event): 
    432438        """ 
Note: See TracChangeset for help on using the changeset viewer.