mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Use new file dialogs.
This commit is contained in:
		
							parent
							
								
									db5ab80411
								
							
						
					
					
						commit
						df976caa34
					
				
					 3 changed files with 34 additions and 39 deletions
				
			
		|  | @ -11,7 +11,6 @@ | |||
| sys.stdout = sys.stderr | ||||
| 
 | ||||
| import os | ||||
| import macfs | ||||
| import MacOS | ||||
| import EasyDialogs | ||||
| import buildtools | ||||
|  | @ -36,7 +35,7 @@ def buildapplet(): | |||
| 	 | ||||
| 	if not sys.argv[1:]: | ||||
| 		filename = EasyDialogs.AskFileForOpen(message='Select Python source or applet:',  | ||||
| 			fileTypes=('TEXT', 'APPL')) | ||||
| 			typeList=('TEXT', 'APPL')) | ||||
| 		if not filename: | ||||
| 			return | ||||
| 		tp, tf = os.path.split(filename) | ||||
|  | @ -86,7 +85,7 @@ def buildapplet(): | |||
| 			verbose = 'default' | ||||
| 		# Loop over all files to be processed | ||||
| 		for filename in args: | ||||
| 			cr, tp = MacOS.GetCreatorAndType(macfs.FSRef(filename)) | ||||
| 			cr, tp = MacOS.GetCreatorAndType(filename) | ||||
| 			if tp == 'APPL': | ||||
| 				buildtools.update(template, filename, dstfilename) | ||||
| 			else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen