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

@ -4,8 +4,7 @@
import unittest
import sys
from PySide.QtCore import QObject
from PySide.QtGui import *
from PySide.QtGui import QWidget, QIntValidator, QSpinBox, QValidator, QApplication
from helper import UsesQApplication
@ -19,7 +18,7 @@ class WidgetValidatorQSpinBox(QSpinBox):
QSpinBox.__init__(self, parent)
def fixup(self, text):
print "It was called!"
print("It was called!")
class DoubleQObjectInheritanceTest(UsesQApplication):