I have a class that inherits QTreeWidget, in the __init__ I am trying to
connect a double click with a function:
class TreeArea(QTreeWidget):
def __init__(self, parent):
.
.
.
self.connect(self, SIGNAL("itemDoubleClicked(QTreeWidgetItem *)"),
self.edit)
def edit(self, item):
.
.
.
However, when I run the program and click on an item I get this error:
TypeError: edit() takes exactly 2 arguments (4 given)
Also, what is the PyQt equivalent of:
setEditTriggers(QAbstractItemView::NoEditTriggers)
--
View this message in context:
http://old.nabble.com/Error-when-double-clicking-tp26374244p26374244.html
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt