mirror of
https://github.com/python/cpython.git
synced 2024-12-04 15:25:13 +08:00
MenuID's are signed.
This commit is contained in:
parent
fe9acdea8a
commit
f94cadf456
@ -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…
Reference in New Issue
Block a user