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

@ -9,9 +9,9 @@ class TestBug569(unittest.TestCase):
types = (QTableWidgetItem, QListWidgetItem, QTreeWidgetItem)
for t in types:
a = t()
a.__lt__ = lambda(other) : True
a.__lt__ = lambda other : True
b = t()
b.__lt__ = lambda(other) : False
b.__lt__ = lambda other : False
self.assertTrue(a < b)
self.assertFalse(b < a)