Fix bug 988 - "The type supplied with currentChanged signal in QTabWidget has changed in 1.0.6"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
f5f9c23c5f
commit
a7e4ddb8ca
3 changed files with 27 additions and 1 deletions
18
tests/QtGui/bug_988.py
Normal file
18
tests/QtGui/bug_988.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import unittest
|
||||
from PySide.QtGui import *
|
||||
|
||||
class TestBug988 (unittest.TestCase):
|
||||
|
||||
def callback(self, arg):
|
||||
self.arg = arg
|
||||
|
||||
def testIt(self):
|
||||
self.arg = None
|
||||
app = QApplication([])
|
||||
obj = QTabWidget()
|
||||
obj.currentChanged.connect(self.callback)
|
||||
obj.currentChanged.emit(5)
|
||||
self.assertEqual(self.arg, 5)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue