MCPcopy Create free account
hub / github.com/ipython/ipython / preprompthook_qt4

Function preprompthook_qt4

IPython/lib/inputhookqt4.py:161–175  ·  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

159 return 0
160
161 def preprompthook_qt4(ishell):
162 """'pre_prompt_hook' used to restore the Qt4 input hook
163
164 (in case the latter was temporarily deactivated after a
165 CTRL+C)
166 """
167 global got_kbdint, sigint_timer
168
169 if(sigint_timer):
170 sigint_timer.cancel()
171 sigint_timer = None
172
173 if got_kbdint:
174 mgr.set_inputhook(inputhook_qt4)
175 got_kbdint = False
176
177 ip._inputhook_qt4 = inputhook_qt4
178 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