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

View of /PyGUI/FontManager.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Mon Feb 9 19:33:31 2004 UTC (15 years, 9 months ago) by efrank
Branch: MAIN
Changes since 1.1: +1 -1 lines
correct all of the imports to standard form of from foo.bar import bar.
weren't using package name, foo in many cases

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

class FontManager:

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

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

        #catalog 
        self.parent.catalog_tree.Clear()
        self.parent.catalog_tree.SetFont(newFont)
        #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