Setting A Generator As The Argument Of A PyQt4 Signal

Posted by Nikwin on Stack Overflow See other posts from Stack Overflow or by Nikwin
Published on 2010-04-07T08:19:35Z Indexed on 2010/04/07 8:23 UTC
Read the original article Hit count: 288

Filed under:
|

I want to use a generator as the argument passed by a PyQt4 signal, and I am not sure as to the cleanest way. I could just do something like elementChosen=QtCore.pyqtSignal(type((i for i in xrange (i)))), but this just looks ugly. Any suggestions?

© Stack Overflow or respective owner

Related posts about python

Related posts about pyqt4