Anonymous committed c5933a6

Several TODO items added for edit functionality.

Comments (0)

Files changed (1)

         """Close when we get a mouse release on a final item."""
         # Get the position
         pos = event.pos()
+	# TODO: button = event.button()
         for i in[:]: 
 	    if self.isInside(pos, i):
 		# If pyRad didn't reach a final action, we stop here. 
-                if self.labelClicked(i) is None: 
+		# TODO: if button == left: 
+		if self.labelClicked(i) is None: 
 		    return None
+		# TODO: elif button == right: 
+		# 		return self.editLabel(i)
                 # Otherwise we can close the pyRad
                 for label in 
+    # TODO: def editLabel(label): -> open message box -> set item.icon and item.action. -> save_config()
     def labelClicked(self, label): 
 	"""React to a label being clicked.
         for i in 
-    def items_to_circle(self, items): 
+    def items_to_circle(self, items): # TODO: change to item_to_label(item) for access in editLabel. 
 	"""Create the circle list from the given items.
 	@return: circle (list of labels)"""
 	circle = []