##// END OF EJS Templates
Revert "Add debug statements to observe loop"...
Emilio Graff -
Show More
@@ -20,9 +20,6 b' def _reclaim_excepthook():'
20 sys.excepthook = shell.excepthook
20 sys.excepthook = shell.excepthook
21
21
22
22
23 announced = 0
24
25
26 def inputhook(context):
23 def inputhook(context):
27 global _appref
24 global _appref
28 app = QtCore.QCoreApplication.instance()
25 app = QtCore.QCoreApplication.instance()
@@ -60,15 +57,6 b' def inputhook(context):'
60
57
61 event_loop = QtCore.QEventLoop(app)
58 event_loop = QtCore.QEventLoop(app)
62
59
63 global announced
64 if announced == 0:
65 print(f"`inputhook` running Qt {QtCore.qVersion()} event loop.")
66 announced += 1
67 elif announced == 10:
68 announced = 0
69 else:
70 announced += 1
71
72 if sys.platform == 'win32':
60 if sys.platform == 'win32':
73 # The QSocketNotifier method doesn't appear to work on Windows.
61 # The QSocketNotifier method doesn't appear to work on Windows.
74 # Use polling instead.
62 # Use polling instead.
General Comments 0
You need to be logged in to leave comments. Login now