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

This commit is contained in:
Renato Filho 2011-10-06 11:36:24 -03:00 • committed by Hugo Parente Lima
commit edaefbce48
8 changed files with 25 additions and 23 deletions

View file

@ -5,6 +5,7 @@ from PySide.QtCore import QObject, QCoreApplication, QEvent, QThread
class MyEvent(QEvent):
def __init__(self,i):
print("TYPE:", type(QEvent.User))
super(MyEvent,self).__init__(QEvent.Type(QEvent.User + 100 ))
self.i = i
@ -42,4 +43,6 @@ class CheckForEventsTypes(unittest.TestCase):
o.app = None
if __name__ == '__main__':
unittest.main()
print int(QEvent.User)
val = QEvent.User + 100
#unittest.main()