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 . import PYQT5
,PYSIDE2
, PYQT4
, PYSIDE
, PythonQtError
17 from PyQt5
.QtTest
import QTest
19 from PySide2
.QtTest
import QTest
21 from PyQt4
.QtTest
import QTest
as OldQTest
23 class QTest(OldQTest
):
25 def qWaitForWindowActive(QWidget
):
26 OldQTest
.qWaitForWindowShown(QWidget
)
28 from PySide
.QtTest
import QTest
30 raise PythonQtError('No Qt bindings could be found')