[Bio] / PyGUI / FontManager.py Repository:
ViewVC logotype

View of /PyGUI/FontManager.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (download) (as text) (annotate)
Wed Feb 25 17:08:17 2004 UTC (15 years, 8 months ago) by hwang
Branch: MAIN
Changes since 1.2: +3 -2 lines
     Changed all the files so that the past inconsistancies of variable and classes names
 are consistant. I.E. MainLayout import MainLayout.
     In MainLayout, separate functions are made for each panel.

from wxPython.wx import *
from PyGUI.MainLayout import MainLayout

class FontManager:

    #------------------------------------------------------------------------
    def __init__(self, parent):
    #------------------------------------------------------------------------
        self.parent   = parent
       
        return

   
    #------------------------------------------------------------------------
    def updateFont(self, newFont):
    #------------------------------------------------------------------------
        
    
        
        print "*"
        print newFont.GetPointSize()
        print "*"

        #catalog 
        self.parent.catalog_tree.Refresh()
        self.parent.catalog_tree.SetFont(newFont)
        self.parent.catalog_tree.Layout()
        #self.parent.catalog_tree.Fit()
        #self.parent.CatWindow.GetAdjustedBestSize()
        

        #metabolite 
        self.parent.shortLabel.SetFont(newFont)
        #self.parent.enzymesDataSourceLabel(newFont)
        
        self.parent.MetTop_Left.Layout()
    
        return

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3