mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Patch #997284: Allow pydoc to work with XP Themes (.manifest file)
Will backport to 2.3.
This commit is contained in:
		
							parent
							
								
									ac37f3d001
								
							
						
					
					
						commit
						e09bd93685
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								Lib/pydoc.py
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								Lib/pydoc.py
									
										
									
									
									
								
							|  | @ -2124,8 +2124,16 @@ def hide(self, event=None): | |||
| 
 | ||||
|     import Tkinter | ||||
|     try: | ||||
|         gui = GUI(Tkinter.Tk()) | ||||
|         Tkinter.mainloop() | ||||
|         root = Tkinter.Tk() | ||||
|         # Tk will crash if pythonw.exe has an XP .manifest | ||||
|         # file and the root has is not destroyed explicitly. | ||||
|         # If the problem is ever fixed in Tk, the explicit | ||||
|         # destroy can go. | ||||
|         try: | ||||
|             gui = GUI(root) | ||||
|             root.mainloop() | ||||
|         finally: | ||||
|             root.destroy() | ||||
|     except KeyboardInterrupt: | ||||
|         pass | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis