Changeset f686259 in sasview for invariantview/src/sans/perspectives


Ignore:
Timestamp:
Aug 24, 2012 10:52:28 AM (12 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:
0b96d74
Parents:
f40f743
Message:

MAC: fixing the broken unit texts in invariant panel

File:
1 edited

Legend:

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

    r3df5ecf rf686259  
    4141 
    4242if sys.platform.count("win32") > 0: 
    43     _STATICBOX_WIDTH = 420 
     43    _STATICBOX_WIDTH = 450 
    4444    PANEL_WIDTH = 500  
    4545    PANEL_HEIGHT = 700 
    4646    FONT_VARIANT = 0 
    4747else: 
    48     _STATICBOX_WIDTH = 450 
     48    _STATICBOX_WIDTH = 490 
    4949    PANEL_WIDTH = 530 
    5050    PANEL_HEIGHT = 700 
     
    17521752        """ 
    17531753        uncertainty = "+/-"  
    1754         unit_invariant = '[1/(cm * A^3)]' 
     1754        unit_invariant = '[1/(cm*A^3)]' 
    17551755        invariant_total_txt = wx.StaticText(self, -1, 'Invariant Total [Q*]') 
    17561756        self.invariant_total_tcl = OutputTextCtrl(self, -1, 
     
    17641764        hint_msg = "Uncertainty on invariant." 
    17651765        self.invariant_total_err_tcl.SetToolTipString(hint_msg) 
    1766         invariant_total_units_txt = wx.StaticText(self, -1, unit_invariant) 
     1766        invariant_total_units_txt = wx.StaticText(self, -1, unit_invariant,  
     1767                                                  size=(80,-1)) 
    17671768     
    17681769        #Invariant total 
     
    17941795        contrast_hint_txt = "Contrast" 
    17951796        self.contrast_tcl.SetToolTipString(contrast_hint_txt) 
    1796         contrast_unit_txt = wx.StaticText(self, -1, '[1/A^2]' 
     1797        contrast_unit_txt = wx.StaticText(self, -1, '[1/A^2]', size=(40,-1) 
    17971798        porod_const_txt = wx.StaticText(self, -1,  
    17981799                                        'Porod\nConstant:\n(optional)\n')   
    1799         porod_unit_txt = wx.StaticText(self, -1, '[1/(cm*A^4)]')  
     1800        porod_unit_txt = wx.StaticText(self, -1, '[1/(cm*A^4)]', size=(80,-1))  
    18001801        self.porod_constant_tcl = InvTextCtrl(self, -1,  
    18011802                                              size=(_BOX_WIDTH, 20), style=0, 
Note: See TracChangeset for help on using the changeset viewer.