[PyQt] Error when double clicking
dizou
di_zou at yahoo.com
Mon Nov 16 19:17:56 GMT 2009
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.
More information about the PyQt
mailing list