Updated QtGui modue to works with python 2.x and 3.x

This commit is contained in:
Renato Filho 2011-10-06 11:38:31 -03:00 • committed by Hugo Parente Lima
commit d9dd319232
15 changed files with 94 additions and 71 deletions

View file

@ -19,7 +19,8 @@ class QPixmapCacheTest(UsesQApplication):
pm3 = QPixmap()
ok = QPixmapCache.find('img', pm3)
self.assertTrue(ok)
b1 = QPixmapCache.find('img').toImage().bits()
b2 = pm3.toImage().bits()
self.assertEqual(QPixmapCache.find('img').toImage().bits(), pm3.toImage().bits())
def testWithKey(self):