[PyQt] new signal style

Russell Valentine russ at coldstonelabs.org
Wed Apr 21 18:13:49 BST 2010


my_comboBox.currentIndexChanged[str].connect(my_function_string)


http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#connecting-disconnecting-and-emitting-signals

See end of section 7.3

On 04/21/10 11:00, Olivier Fournier wrote:
> Hi,
> 
> my_comboBox.currentIndexChanged.connect(my_function) "return" an integer
> 
> Is it possible with new signal style to obtain directly the text of
> QConbobox item like with:
> connect(my_comboBox, QtCore.SIGNAL("currentIndexChanged ( const QString
> & ) "),my_function)
> 
> thanks
> 
> Oliv
> 
> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list