[PyKDE] Using Signal & Slot

Eddy Setyawan eddy.setyawan at yahoo.com
Fri Jul 7 21:53:27 BST 2006


Just know that there are many examples at source dir
:p

thx alot

regards,
Eddy Setyawan

--- Andreas Pakulat <apaku at gmx.de> wrote:

> On 07.07.06 12:51:16, Eddy Setyawan wrote:
> > how to connect a C++ signal that have an object
> > parameter i.e: currentCellChanged(QTableWidgetItem
> > *,QTableWidgetItem *) to python slot ??
> > i have try like code below
> 
> I think there are quite some examples in the
> examples or examples2/3 dir
> that show you how to connect C++ signals with python
> slots.
> 
> >
>
self.connect(self.ui.tableDays,QtCore.SIGNAL("currentItemChanged(QTableWidgetItem,
> > QTableWidgetItem)"),self.tableDaysItemChanged)
> 
> You have to give QtCore.SIGNAL the _exact_ signature
> of the C++ signal,
> i.e.:
> 
> QtCore.SIGNAL("currentItemChanged(QTableWidgetItem*,
> QTableWidgetItem*)")
> 
> Notice the *.
> 
> Andreas
> 
> -- 
> You will be honored for contributing your time and
> skill to a worthy cause.
> 
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
> 




More information about the PyQt mailing list