[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE FontSettings.py,1.1,1.2
Jack Jansen
jackjansen@users.sourceforge.net
Sat, 25 Aug 2001 05:04:45 -0700
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv18846/Python/Mac/Tools/IDE
Modified Files:
FontSettings.py
Log Message:
Import the MacOS toolbox modules from the Carbon package.
Index: FontSettings.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/FontSettings.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FontSettings.py 1999/01/30 22:36:20 1.1
--- FontSettings.py 2001/08/25 12:04:43 1.2
***************
*** 9,14 ****
import W
import PyEdit
! import TextEdit
! import Qd
import string
import types
--- 9,14 ----
import W
import PyEdit
! from Carbon import TextEdit
! from Carbon import Qd
import string
import types
***************
*** 105,109 ****
font, style, size, color = fontsettings
if type(font) <> types.StringType:
! import Res
res = Res.GetResource('FOND', font)
font = res.GetResInfo()[2]
--- 105,109 ----
font, style, size, color = fontsettings
if type(font) <> types.StringType:
! from Carbon import Res
res = Res.GetResource('FOND', font)
font = res.GetResInfo()[2]