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

Function preprompthook_qt4

pydev_ipython/inputhookqt4.py:179–193  ·  view source on GitHub ↗

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

(ishell)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

set_inputhookMethod · 0.80

Tested by

no test coverage detected