[Python-checkins] CVS: python/dist/src/Mac/scripts MkDistr_ui.py,1.13,1.14

Jack Jansen jackjansen@users.sourceforge.net
Mon, 27 Aug 2001 14:39:31 -0700


Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv4690/Python/Mac/scripts

Modified Files:
	MkDistr_ui.py 
Log Message:
Use the new macresource module to open the accompanying resource file (if needed).

Index: MkDistr_ui.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/MkDistr_ui.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** MkDistr_ui.py	2001/08/25 12:07:01	1.13
--- MkDistr_ui.py	2001/08/27 21:39:29	1.14
***************
*** 24,27 ****
--- 24,28 ----
  import os
  import sys
+ import macresource
  
  # Resource IDs
***************
*** 322,326 ****
  def InitUI():
  	"""Initialize stuff needed by UI (a resource file)"""
! 	Res.FSpOpenResFile('MkDistr.rsrc', 1)
  
  class _testerhelp:
--- 323,327 ----
  def InitUI():
  	"""Initialize stuff needed by UI (a resource file)"""
! 	macresource.need('DLOG', ID_MAIN, 'MkDistr.rsrc', modname=__name__)
  
  class _testerhelp:
***************
*** 341,345 ****
  	def __init__(self):
  		import sys
! 		Res.FSpOpenResFile('MkDistr.rsrc', 1)
  		self.inc = _testerhelp('include')
  		self.exc = _testerhelp('exclude')
--- 342,346 ----
  	def __init__(self):
  		import sys
! 		InitUI()
  		self.inc = _testerhelp('include')
  		self.exc = _testerhelp('exclude')