summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_797.py
blob: f61a22f8ba4c9e408a33be3689c9fc2df11f15db (plain)
1
2
3
4
5
6
7
8
9
10
11
from PySide import QtUiTools
from PySide import QtCore
from PySide import QtGui
from helper import adjust_filename

app = QtGui.QApplication([])
loader = QtUiTools.QUiLoader()
file = QtCore.QFile(adjust_filename('bug_552.ui', __file__))
w = QtGui.QWidget()
# An exception can't be thrown
mainWindow = loader.load(file, w)