mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	MenuID's are signed.
This commit is contained in:
		
							parent
							
								
									fe9acdea8a
								
							
						
					
					
						commit
						f94cadf456
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -190,6 +190,8 @@ class Application(FrameWork.Application):
 | 
			
		|||
			self.checkmenus(None)
 | 
			
		||||
		result = MenuToolbox.MenuSelect(where)
 | 
			
		||||
		id = (result>>16) & 0xffff	# Hi word
 | 
			
		||||
		if id >= 0x8000:
 | 
			
		||||
			id = -0x10000 + id
 | 
			
		||||
		item = result & 0xffff		# Lo word
 | 
			
		||||
		self.do_rawmenu(id, item, window, event)
 | 
			
		||||
	
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue