12 |
12 |
13 from PyQt5.QtCore import pyqtSlot, Qt, QProcess, QEventLoop |
13 from PyQt5.QtCore import pyqtSlot, Qt, QProcess, QEventLoop |
14 from PyQt5.QtGui import QCursor, QGuiApplication |
14 from PyQt5.QtGui import QCursor, QGuiApplication |
15 |
15 |
16 |
16 |
17 # TODO: add similar class for QMutexLocker |
|
18 class E5OverrideCursor(contextlib.AbstractContextManager): |
17 class E5OverrideCursor(contextlib.AbstractContextManager): |
19 """ |
18 """ |
20 Class implementing a context manager class for an override cursor. |
19 Class implementing a context manager class for an override cursor. |
21 """ |
20 """ |
22 def __init__(self, cursorShape=Qt.WaitCursor): |
21 def __init__(self, cursorShape=Qt.WaitCursor): |