blob: f42ce4a12f49439fc428102d9fce0968bf6694b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import unittest
from helper import adjust_filename
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtUiTools import *
class TestBug913 (unittest.TestCase):
def testIt(self):
app = QApplication([])
loader = QUiLoader()
widget = loader.load(adjust_filename('bug_913.ui', __file__))
widget.tabWidget.currentIndex() # direct child is available as member
widget.le_first.setText('foo') # child of QTabWidget must also be available!
if __name__ == '__main__':
unittest.main()
|