MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / preprompthook_qt6

Function preprompthook_qt6

pydev_ipython/inputhookqt6.py:182–196  ·  view source on GitHub ↗

pre_prompt_hook' used to restore the Qt6 input hook (in case the latter was temporarily deactivated after a CTRL+C)

(ishell)

Source from the content-addressed store, hash-verified

180 return 0
181
182 def preprompthook_qt6(ishell):
183 """'pre_prompt_hook' used to restore the Qt6 input hook
184
185 (in case the latter was temporarily deactivated after a
186 CTRL+C)
187 """
188 global got_kbdint, sigint_timer
189
190 if sigint_timer:
191 sigint_timer.cancel()
192 sigint_timer = None
193
194 if got_kbdint:
195 mgr.set_inputhook(inputhook_qt6)
196 got_kbdint = False
197
198 ip._inputhook_qt6 = inputhook_qt6
199 ip.set_hook("pre_prompt_hook", preprompthook_qt6)

Callers

nothing calls this directly

Calls 1

set_inputhookMethod · 0.80

Tested by

no test coverage detected