Signal on qt

Rafael Durán Castañeda rafadurancastaneda at gmail.com
Tue Apr 12 15:34:06 EDT 2011


I don't know what are you trying with this for, but I think you may be
connecting signal to a combo_test and after that changing combo_test, losing
connection, but I'm not really sure. Anyway, this is a python list for PyQt
(I think you are using it) you should ask in PyQt list.
2011年4月12日 luca72 <lucaberto at libero.it>
> hello i have this:
> def mytest(self):
> for a in xrange(self.tableWidget.rowCount()):
> self.combo_test = QtGui.QComboBox()
> self.connect(self.combo_test,
> QtCore.SIGNAL("currentIndexChanged(int)"), self.metto_test)
> self.combo_test.addItems(self.lista_def)
> self.tableWidget.setCellWidget(a, 4, self.combo_test)
> def metto_test(self, index):
> print index
>> I he no connection what is wrong?
>> Thanks
>> Luca
> --
> http://mail.python.org/mailman/listinfo/python-list
>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110412/a6495fee/attachment-0001.html>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /