have a problem with SLOT,
el slot se activa muchas veces
this is my code:

def add_item(self):
        mdi = self.mdiArea.activeSubWindow()
        mdi.setWindowModified(True)
        tree = mdi.widget().treeRequirements
        item = QTreeWidgetItem (tree)
        item.setText (0, str("item"))
        self.connect(tree, SIGNAL("itemClicked(QTreeWidgetItem *, int)"),
self.show_widget)


if I have five items in my QTreeWidget and I click one of them, the slot
"show_widget" also runs five times


-- 
Jose Vargas Paz
  AKA:   ejosvp
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to