Mercurial > parpg-core
diff src/parpg/gui/inventorygui.py @ 165:6d07093e9d51
Added context menu to the inventory.
author | KarstenBock@gmx.net |
---|---|
date | Sat, 08 Oct 2011 14:25:48 +0200 |
parents | 50c248656348 |
children | 2d671e57badb |
line wrap: on
line diff
--- a/src/parpg/gui/inventorygui.py Sat Oct 08 14:19:35 2011 +0200 +++ b/src/parpg/gui/inventorygui.py Sat Oct 08 14:25:48 2011 +0200 @@ -156,9 +156,10 @@ widget = self.grid.getSlot(counter) slot_name = widget.name widget.index = counter - events_to_map[slot_name + "/mousePressed"] = self.mousePressedOnSlot - #events_to_map[slot_name + "/mouseReleased"] = \ - # self.showContextMenu + events_to_map[slot_name + "/mousePressed"] = ( + self.mousePressedOnSlot + ) + events_to_map[slot_name + "/mouseReleased"] = self.showContextMenu self.grid.mapEvents(events_to_map)