mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Added Alt-w bindings
This commit is contained in:
		
							parent
							
								
									9044b8e5e3
								
							
						
					
					
						commit
						964fbbbc61
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		|  | @ -25,12 +25,15 @@ def __init__(self, switchboard, parent=None): | ||||||
|         self.__sb = switchboard |         self.__sb = switchboard | ||||||
|         self.__lastbox = None |         self.__lastbox = None | ||||||
|         self.__dontcenter = 0 |         self.__dontcenter = 0 | ||||||
|  |         # GUI | ||||||
|         root = self.__root = Toplevel(parent, class_='Pynche') |         root = self.__root = Toplevel(parent, class_='Pynche') | ||||||
|         root.protocol('WM_DELETE_WINDOW', self.__withdraw) |         root.protocol('WM_DELETE_WINDOW', self.__withdraw) | ||||||
|         root.title('Pynche %s' % __version__) |         root.title('Pynche %s' % __version__) | ||||||
|         root.iconname('Pynche Color List') |         root.iconname('Pynche Color List') | ||||||
|         root.bind('<Alt-q>', self.__quit) |         root.bind('<Alt-q>', self.__quit) | ||||||
|         root.bind('<Alt-Q>', self.__quit) |         root.bind('<Alt-Q>', self.__quit) | ||||||
|  |         root.bind('<Alt-w>', self.__withdraw) | ||||||
|  |         root.bind('<Alt-W>', self.__withdraw) | ||||||
|         # |         # | ||||||
|         # create the canvas which holds everything, and its scrollbar |         # create the canvas which holds everything, and its scrollbar | ||||||
|         # |         # | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ def __init__(self, switchboard, parent=None): | ||||||
|         root.iconname('Pynche Text Window') |         root.iconname('Pynche Text Window') | ||||||
|         root.bind('<Alt-q>', self.__quit) |         root.bind('<Alt-q>', self.__quit) | ||||||
|         root.bind('<Alt-Q>', self.__quit) |         root.bind('<Alt-Q>', self.__quit) | ||||||
|  |         root.bind('<Alt-w>', self.__withdraw) | ||||||
|  |         root.bind('<Alt-W>', self.__withdraw) | ||||||
|         # |         # | ||||||
|         # create the text widget |         # create the text widget | ||||||
|         # |         # | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Barry Warsaw
						Barry Warsaw