removed silly & mask, avoiding FutureWarning

This commit is contained in:
Just van Rossum 2003-01-09 22:54:37 +00:00
parent 6706c4d5fd
commit addc11edf0
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class PopupWidget(Wbase.ClickableWidget):
self.menu.menu.EnableMenuItem(0)
reply = self.menu.menu.PopUpMenuSelect(t, l, 1)
if reply:
id = (reply & 0xffff0000) >> 16
id = reply >> 16
item = reply & 0xffff
self._menu_callback(id, item)
self._emptymenu()
@ -200,7 +200,7 @@ class PopupMenu(PopupWidget):
self.menu.menu.EnableMenuItem(0)
reply = self.menu.menu.PopUpMenuSelect(t, l, 1)
if reply:
id = (reply & 0xffff0000) >> 16
id = reply >> 16
item = reply & 0xffff
self._menu_callback(id, item)