Moved test for bug #921 from QtCore's directory to QtGui's.

Because it imports QtGui module.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
This commit is contained in:
Marcelo Lira 2011-07-21 14:35:01 -03:00
commit a69b5adfed
3 changed files with 1 additions and 1 deletions

View file

@ -17,7 +17,6 @@ PYSIDE_TEST(bug_826.py)
PYSIDE_TEST(bug_829.py)
PYSIDE_TEST(bug_835.py)
PYSIDE_TEST(bug_920.py)
PYSIDE_TEST(bug_921.py)
PYSIDE_TEST(bug_927.py)
PYSIDE_TEST(bug_931.py)
PYSIDE_TEST(blocking_signals_test.py)

View file

@ -1,52 +0,0 @@
#!/usr/bin/env python
import unittest
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
from helper import TimedQApplication
class Signaller(QtCore.QObject):
s1 = QtCore.Signal()
s2 = QtCore.Signal()
s3 = QtCore.Signal()
class Window(object):
def __init__(self, s):
self._window = QtGui.QMainWindow()
self._window.setAttribute(QtCore.Qt.WA_DeleteOnClose, True)
self._window.setWindowTitle("Demo!")
self._s = s
self._s.s1.connect(self._on_signal)
self._s.s2.connect(self._on_signal)
def show(self):
self._window.show()
def _on_signal(self):
self._window.setWindowTitle("Signaled!")
class TestTimedApp(TimedQApplication):
def testSignals(self):
s = Signaller()
w = Window(s)
w.show()
def midleFunction():
def internalFunction():
pass
s.s3.connect(internalFunction)
midleFunction()
self.app.exec_()
del w
s.s1.emit()
s.s2.emit()
s.s3.emit()
if __name__ == '__main__':
unittest.main()