[PyQt] Fwd: converting old signal/slot to new signal/slot
coastalchaos at hotmail.co.uk
Fri May 29 15:57:40 BST 2015
I must remember to reply all!
> Thanks. The system does have unit tests I'll have to look into those but I'll definitely read the items on the links.
> I've hit a problem with a class init. I'll post separately and try to give a complete example if I can.
>> On 29 May 2015, at 12:58, Florian Bruhin <me at the-compiler.org> wrote:
>> * c c <coastalchaos at hotmail.co.uk> [2015-05-28 07:50:14 +0100]:
>>> Yes I agree the new style is cleaner, I'm just trying to understand
>>> the code as it was so I can refactor it to the new style to move
>>> forward with pyqt5/qt5 now and not have to worry in the future.
>> I suggest writing some unit tests. I use py.test and
>> pytest-qt which makes this a lot easier.
>>  http://nedbatchelder.com/text/test0.html
>>  http://pytest.org/
>>  https://pytest-qt.readthedocs.org/
>> You'll get more familiar with Python, with the application you're
>> porting, and - most importantly - if you have good test coverage
>> ( helps), you'll instantly know what works and what doesn't.
>> Also, seeing the number of successful tests go up while you're working
>> is satisfying! :)
>>  http://nedbatchelder.com/code/coverage/
>> http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
>> GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
>> I love long mails! | http://email.is-not-s.ms/
>> PyQt mailing list PyQt at riverbankcomputing.com
More information about the PyQt