diff gui/inventorygui.py @ 135:9e86c37f5506

Added context menu to the inventory.
author KarstenBock@gmx.net
date Sat, 08 Oct 2011 14:25:48 +0200
parents 18391ebe137b
children c28e29056218
line wrap: on
line diff
--- a/gui/inventorygui.py	Sat Oct 08 14:19:35 2011 +0200
+++ b/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)