mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Show the MacPython IDE version in the interactive banner.
This commit is contained in:
		
							parent
							
								
									1fbad002d7
								
							
						
					
					
						commit
						e6e745fc49
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -47,8 +47,11 @@ def set_namespace(self, dict):
 | 
				
			||||||
		self._namespace = dict
 | 
							self._namespace = dict
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	def open(self):
 | 
						def open(self):
 | 
				
			||||||
 | 
							import __main__
 | 
				
			||||||
		W.EditText.open(self)
 | 
							W.EditText.open(self)
 | 
				
			||||||
		self.write('Python ' + sys.version + '\nType "copyright", "credits" or "license" for more information.\n')
 | 
							self.write('Python %s\n' % sys.version)
 | 
				
			||||||
 | 
							self.write('Type "copyright", "credits" or "license" for more information.\n')
 | 
				
			||||||
 | 
							self.write('MacPython IDE %s\n' % __main__.__version__)
 | 
				
			||||||
		self.write(sys.ps1)
 | 
							self.write(sys.ps1)
 | 
				
			||||||
		self.flush()
 | 
							self.flush()
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue