summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_1060.py
blob: 8b5150194cc998c462e2cba6693be37c5972471c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
''' unit test for BUG #1060 '''

from PySide.QtGui import QApplication
from PySide.QtUiTools import QUiLoader
from helper import adjust_filename

class MyQUiLoader(QUiLoader):
    def __init__(self):
        super(MyQUiLoader, self).__init__()

    def createWidget(self, *args):
        return super(MyQUiLoader, self).createWidget(*args)

if __name__ == "__main__":
    app = QApplication([])

    ui = MyQUiLoader().load(adjust_filename("bug_1060.ui", __file__))
    ui.show()