mirror of
				https://github.com/python/cpython.git
				synced 2025-10-26 19:24:34 +00:00 
			
		
		
		
	Tkinter rename, step 2: fix imports and add stub modules.
This commit is contained in:
		
							parent
							
								
									bbc57d73a0
								
							
						
					
					
						commit
						ad9afeb8f0
					
				
					 53 changed files with 206 additions and 85 deletions
				
			
		|  | @ -3,7 +3,7 @@ | |||
| GUI application (as opposed to an X11 application). | ||||
| """ | ||||
| import sys | ||||
| import Tkinter | ||||
| import tkinter | ||||
| 
 | ||||
| def runningAsOSXApp(): | ||||
|     """ Returns True iff running from the IDLE.app bundle on OSX """ | ||||
|  | @ -26,7 +26,7 @@ def doOpenFile(*args): | |||
| def hideTkConsole(root): | ||||
|     try: | ||||
|         root.tk.call('console', 'hide') | ||||
|     except Tkinter.TclError: | ||||
|     except tkinter.TclError: | ||||
|         # Some versions of the Tk framework don't have a console object | ||||
|         pass | ||||
| 
 | ||||
|  | @ -46,7 +46,7 @@ def overrideRootMenu(root, flist): | |||
|     # | ||||
|     # Due to a (mis-)feature of TkAqua the user will also see an empty Help | ||||
|     # menu. | ||||
|     from Tkinter import Menu, Text, Text | ||||
|     from tkinter import Menu, Text, Text | ||||
|     from EditorWindow import prepstr, get_accelerator | ||||
|     import Bindings | ||||
|     import WindowList | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl