[Python-checkins] CVS: python/dist/src/Mac/scripts EditPythonPrefs.py,1.25,1.26

Jack Jansen jackjansen@users.sourceforge.net
2001年8月27日 14:41:25 -0700


Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv5768/Python/Mac/scripts
Modified Files:
	EditPythonPrefs.py 
Log Message:
Use the new macresource module to open the accompanying resource file (if needed).
Index: EditPythonPrefs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/EditPythonPrefs.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** EditPythonPrefs.py	2001年08月25日 12:04:24	1.25
--- EditPythonPrefs.py	2001年08月27日 21:41:23	1.26
***************
*** 16,19 ****
--- 16,20 ----
 from Carbon import Res # For Res.Error
 import pythonprefs
+ import macresource
 import EasyDialogs
 try:
***************
*** 196,203 ****
 
 def main():
! 	try:
! 		h = FSpOpenResFile('EditPythonPrefs.rsrc', 1)
! 	except Res.Error:
! 		pass	# Assume we already have acces to our own resource
 	
 	MacOS.SchedParams(1, 0)
--- 197,201 ----
 
 def main():
! 	macresource.need('DLOG', DIALOG_ID, 'EditPythonPrefs.rsrc')
 	
 	MacOS.SchedParams(1, 0)

AltStyle によって変換されたページ (->オリジナル) /