mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Tkinter rename reversal: remove tkinter package, adapt imports and docs.
This commit is contained in:
		
							parent
							
								
									33cece05b9
								
							
						
					
					
						commit
						6634bf2919
					
				
					 74 changed files with 227 additions and 7971 deletions
				
			
		|  | @ -32,7 +32,7 @@ | |||
| import sys | ||||
| import string | ||||
| import re | ||||
| import tkinter | ||||
| import Tkinter | ||||
| 
 | ||||
| # the event type constants, which define the meaning of mc_type | ||||
| MC_KEYPRESS=0; MC_KEYRELEASE=1; MC_BUTTONPRESS=2; MC_BUTTONRELEASE=3; | ||||
|  | @ -292,7 +292,7 @@ def MultiCallCreator(widget): | |||
|         return _multicall_dict[widget] | ||||
| 
 | ||||
|     class MultiCall (widget): | ||||
|         assert issubclass(widget, tkinter.Misc) | ||||
|         assert issubclass(widget, Tkinter.Misc) | ||||
| 
 | ||||
|         def __init__(self, *args, **kwargs): | ||||
|             apply(widget.__init__, (self,)+args, kwargs) | ||||
|  | @ -382,8 +382,8 @@ def __del__(self): | |||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     # Test | ||||
|     root = tkinter.Tk() | ||||
|     text = MultiCallCreator(tkinter.Text)(root) | ||||
|     root = Tkinter.Tk() | ||||
|     text = MultiCallCreator(Tkinter.Text)(root) | ||||
|     text.pack() | ||||
|     def bindseq(seq, n=[0]): | ||||
|         def handler(event): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl