mirror of https://github.com/python/cpython.git
MenuID's are signed.
This commit is contained in:
parent
fe9acdea8a
commit
f94cadf456
|
@ -190,6 +190,8 @@ def do_inMenuBar(self, partcode, window, event):
|
|||
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