Changeset 1f1cacf in sasview for guiframe


Ignore:
Timestamp:
Apr 22, 2010 11:09:26 AM (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:
46e7e82
Parents:
e7ff682
Message:

proper font for MAC

File:
1 edited

Legend:

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

    r7526ad4 r1f1cacf  
    1313from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as Canvas 
    1414from matplotlib import pyplot, mpl, pylab 
    15  
     15#FONT size  
     16if sys.platform.count("win32")>0: 
     17    FONT_VARIANT = 0 
     18else: 
     19    FONT_VARIANT = 1 
     20     
    1621DEFAULT_CMAP= pylab.cm.jet 
    1722class DetectorDialog(wx.Dialog): 
     
    2530        kwds["style"] = wx.DEFAULT_DIALOG_STYLE 
    2631        wx.Dialog.__init__(self,parent,id=1, *args, **kwds) 
    27      
     32         
     33        self.SetWindowVariant(variant=FONT_VARIANT) 
    2834        self.parent=base 
    2935        self.dpi = dpi 
Note: See TracChangeset for help on using the changeset viewer.