--===============4697178510551997194== Content-Type: multipart/signed; boundary="nextPart5819929.pRiFP0I3JD"; micalg="pgp-sha256"; protocol="application/pgp-signature" Content-Transfer-Encoding: quoted-printable --nextPart5819929.pRiFP0I3JD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" In data mercoled=EC 7 marzo 2012 09:37:38, Mads Ipsen ha scritto: > the Python unittest moudle. I have attached a few examples. If you ha= ve > time to take a look and comment, it would be great. I have a question on FooTest: is having a QApplication instance enough = in=20 unittest to ensure emission of signals? Otherwise your problem does not= only=20 apply to using threads, but to any use of unittest with signals and slo= ts. > * Hook up a slot which gets called when the thread finishes As I said above, are signals emitted in the FooTest case? I ask because= I've=20 been meaning to add unittest to my applications but I was not sure how = to=20 handle the case of slots and signals. > * Start the event loop by calling QtGui.qApp.exec_() I think I've tried this in the past and it didn't quite work for me. --nextPart5819929.pRiFP0I3JD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iQIcBAABCAAGBQJPVx+aAAoJEAE/pQtuGk55uBoP/ia0nR90Qsptw92/wKNZdJw+ C5uaJgmJeea6NyroSAzJTf37ZhV5OMKg4eUSa/AbfWqvMhzm1jRyyg3Y6DKgp+pO 0x2fwZzFKqwHy6qG4skbdArFbRHw7x6nFVkSitR0Cbc9dOvDxrh88fJFtgg+2eoE ZrRjNziPDFPgFTXL0EOKOd6/bO/dZeMUuHjHQhlMUXAw/v/0yM/QtCFz8CG8HDRt Y1/rAd27dyXcRdP1X2kCSKNRHL2tFWfpDOIpJymnBIrIq1ZJrCvwjJ5EUCMBZOrH n9Z50vh5In+0gAfBIS1UXlECIteWo4OTNIG6r3bpQOE2OR0soha7YC+d0lrlCPNi 8RJUWUbrPJw+X7S+ve5zGyqRuf8JWxpcFcuOgAoVZMWMViCW3NH6pA4bADfr1RhJ 2LbKE0g2XuiLZoj5+7nhIzVgpi+8VUHnW3fZCslOuPNvtALMoh+geWyNMxEE0GyC FPFvbGT9lwzZ4SMhxctRdhEobWsVZXCcOslrogz/814O2JRimbiPJ8gy9Sbc8RP2 df4VtwZGG4xPnQOC5E4HqXzyaU3gDLit3wDMY1/hc0WUIww/bcL8guu2ccrch1uJ Pzm+wH1Baz2mKOj4FAPD3oUI6Zzd4fQSj4JJjv7mwvzAydd5Yyj2IuFuccMRkQvk WeWc4fOeXrU+x1KbeDLo =BxDz -----END PGP SIGNATURE----- --nextPart5819929.pRiFP0I3JD-- --===============4697178510551997194== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt --===============4697178510551997194==--