--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3f1cd8c0-0f1f-471a-80e8-49205b0dbe36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def doubleClickedItem(self): """for when an item is double clicked """ theListWidget = self.sender() currentItem = theListWidget.currentItem() currentItemText = currentItem.text() currentItem.setBackground(QtGui.QColor('red'))
def clickable(widget): """Re implementation Double Click Event on a widget""" class MouseDoubleClickFilter(QtCore.QObject): doubleClicked = QtCore.pyqtSignal() def eventFilter(self, obj, event): if obj == widget: if event.type() == QtCore.QEvent.MouseButtonDblClick: self.doubleClicked.emit() return True return False filter = MouseDoubleClickFilter(widget) widget.installEventFilter(filter) return filter.doubleClicked
# Connect the double click signal clickable(qlistwidget).connect(handleDoubleClick) def handleDoubleClick(): # Implement your color update logic here pass
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/78f19fba-ce1b-4697-b768-e9d686c78b40%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/78f19fba-ce1b-4697-b768-e9d686c78b40%40googlegroups.com.
----
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPaTLMSbTKJqWpRjf24%3DHCsatoBwXhfe-2guE1eDgH5%2BNmuQFQ%40mail.gmail.com.