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

View of /ModelEditor/FontManager.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Tue Oct 5 15:19:52 2004 UTC (14 years, 11 months ago) by efrank
Branch: MAIN
CVS Tags: post-st-migration2, pre-wxPython-2515-migration, sc04-finalDay, post-st-migration, before-dynamics-persistence, sc2004-1, sc2004-3, lwc, sc2004-4, treatman-lastDay-0, sc2004-2, preTreatmanDyn, sc2004-0, HEAD
Changes since 1.1: +1 -1 lines
wonderif this will conflict with a file in attic???

from wxPython.wx import *
from ModelEditor.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.metTopLeft.Layout()
    
        return

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3