Changeset f1aa385 in sasview


Ignore:
Timestamp:
Nov 10, 2009 4:32:28 PM (15 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:
c69b6d5
Parents:
ffb838f
Message:

mac font sized changed for these panels: note:)textctrl still to go.

Location:
sansview
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    rc985bef rf1aa385  
    2020if sys.platform.count("win32")>0: 
    2121    PANEL_WIDTH = 450 
     22    FONT_VARIANT = 0 
    2223else: 
    2324    PANEL_WIDTH = 500 
     25    FONT_VARIANT = 1 
    2426     
    2527class BasicPage(wx.ScrolledWindow): 
     
    3537        wx.ScrolledWindow.__init__(self, parent, 
    3638                 style= wx.FULL_REPAINT_ON_RESIZE ) 
     39        #Set window's font size  
     40        self.SetWindowVariant(variant=FONT_VARIANT) 
    3741        ##window_name 
    3842        self.window_name = page_info.window_name 
     
    745749        self.enable2D= state.enable2D 
    746750        self.engine_type = state.engine_type 
    747  
     751         
    748752        #??? 
    749753        self.disp_cb_dict = state.disp_cb_dict 
     
    819823                     
    820824            else: 
    821                  
     825                keys = self.model.getParamList() 
     826                for item in keys: 
     827                    if item in self.disp_list and not self.model.details.has_key(item): 
     828                        self.model.details[item]=["",None,None] 
    822829                for k,v in self.state.disp_cb_dict.iteritems(): 
    823830                    self.disp_cb_dict = copy.deepcopy(state.disp_cb_dict)  
     
    832839            self.disable_smearer.SetValue(state.disable_smearer) 
    833840            self.onSmear(event=None) 
    834             self.tcChi.SetLabel(str( state.tcChi)) 
    835             self.sizer5.Layout() 
    836             self.Layout() 
    837             self.Refresh() 
    838              
     841            self.tcChi.SetLabel(str( state.tcChi))             
    839842        
    840843        ## reset state of checkbox,textcrtl  and dispersity parameters value 
     
    879882                    item[4].Clear() 
    880883                    item[4].Hide() 
    881         ##Is this layout necessary? Had a problem w/MAC. 
     884        ##Is this layout necessary? Had a problem w/MAC:Not anymore. 
    882885        #self.Layout() 
    883886         
     
    15791582        #draw the model with the current dispersity 
    15801583        self._draw_model() 
    1581         #self.sizer4_4.Layout() 
    1582         #self.sizer5.Layout() 
     1584        self.sizer4_4.Layout() 
     1585        self.sizer5.Layout() 
    15831586        self.Layout() 
    1584         #self.Refresh() 
    1585         #self.SetScrollbars(20,20,25,65)        
     1587        #self.Refresh()       
    15861588           
    15871589         
  • sansview/perspectives/fitting/simfitpage.py

    rc99a6c5 rf1aa385  
    77if sys.platform.count("win32")>0: 
    88    PANEL_WID = 420 
     9    FONT_VARIANT = 0 
    910else: 
    1011    PANEL_WID = 490 
    11  
     12    FONT_VARIANT = 1 
    1213             
    1314def get_fittableParam( model): 
     
    4445             Simultaneous page display 
    4546        """ 
     47        ##Font size 
     48        self.SetWindowVariant(variant = FONT_VARIANT) 
     49         
    4650        self.parent = parent 
    4751        ## store page_finder 
  • sansview/perspectives/fitting/sldPanel.py

    rc99a6c5 rf1aa385  
    1919    _STATICBOX_WIDTH = 350 
    2020    PANEL_SIZE = 400 
     21    FONT_VARIANT = 0 
    2122else: 
    2223    _STATICBOX_WIDTH = 380 
    2324    PANEL_SIZE = 430 
    24  
     25    FONT_VARIANT = 1 
     26     
    2527class SldPanel(wx.Panel): 
    2628    """ 
     
    2931    def __init__(self, parent,base=None, id = -1): 
    3032        wx.Panel.__init__(self, parent, id = id) 
     33        #Font size  
     34        self.SetWindowVariant(variant=FONT_VARIANT) 
     35         
    3136        # Object that receive status event 
    3237        self.base= base 
  • sansview/welcome_panel.py

    rea2aa224 rf1aa385  
    1515import wx.lib.hyperlink 
    1616import os.path 
    17 import os 
    18  
     17import os, sys 
    1918import local_config as config 
    2019 
     20#Font size width  
     21if sys.platform.count("win32")>0: 
     22    FONT_VARIANT = 0 
     23else: 
     24    FONT_VARIANT = 1  
     25     
    2126class WelcomePanel(wx.Panel): 
    2227    """ 
     
    3035    ## Flag to tell the AUI manager to put this panel in the center pane 
    3136    CENTER_PANE = True 
     37    
    3238     
    3339    def __init__(self, *args, **kwds): 
     
    3945        image = os.path.join("images","SVwelcome.png") 
    4046         
     47        self.SetWindowVariant(variant = FONT_VARIANT) 
    4148        self.bitmap_logo = wx.StaticBitmap(self, -1, wx.Bitmap(image)) 
    4249        
Note: See TracChangeset for help on using the changeset viewer.