1 # -*- coding: utf-8 -*-
3 # Copyright © 2014-2015 Colin Duquesnoy
4 # Copyright © 2009- The Spyder Developmet Team
6 # Licensed under the terms of the MIT License
7 # (see LICENSE.txt for details)
10 Provides QtTest and functions
13 from qtpy
import PYQT5
, PYQT4
, PYSIDE
, PythonQtError
17 from PyQt5
.QtTest
import QTest
19 from PyQt4
.QtTest
import QTest
as OldQTest
21 class QTest(OldQTest
):
23 def qWaitForWindowActive(QWidget
):
24 OldQTest
.qWaitForWindowShown(QWidget
)
26 from PySide
.QtTest
import QTest
28 raise PythonQtError('No Qt bindings could be found')