Hello Again at all:
i get segmentation fault and i can't debug in this script:
class Form(QWidget, Ui_Form):
"""
Class documentation goes here.
"""
def __init__(self, parent = None):
"""
Constructor
"""
QWidget.__init__(self, parent)
self.setupUi(self)
self.modello = QtGui.QDirModel()
self.treeWidget.setModel(self.modello)
@pyqtSignature("")
def on_pushButton_clicked(self):
"""
Slot documentation goes here.
"""
# TODO: not implemented yet
# raise "Not implemented yet"
self.file_information()
[EMAIL PROTECTED]("QTreeWidgetItem*, int")
#def on_treeWidget_itemClicked(self, item, column):
# """
#Slot documentation goes here.
#"""
# TODO: not implemented yet
#raise "Not implemented yet"
# self.file_information()
def file_information(self):
val = self.treeWidget.currentItem()
indice = self.treeWidget.indexFromItem(val, 0)
in this instruction :
indice = self.treeWidget.indexFromItem(val, 0)
Regards
Luca
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt