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

Function _wake

IPython/terminal/pt_inputhooks/osx.py:83–98  ·  view source on GitHub ↗

Wake the Application

(NSApp)

Source from the content-addressed store, hash-verified

81
82
83def _wake(NSApp):
84 """Wake the Application"""
85 event = msg(C('NSEvent'),
86 n('otherEventWithType:location:modifierFlags:'
87 'timestamp:windowNumber:context:subtype:data1:data2:'),
88 15, # Type
89 0, # location
90 0, # flags
91 0, # timestamp
92 0, # window
93 None, # context
94 0, # subtype
95 0, # data1
96 0, # data2
97 )
98 msg(NSApp, n('postEvent:atStart:'), void_p(event), True)
99
100
101_triggered = Event()

Callers 1

_input_callbackFunction · 0.85

Calls 2

nFunction · 0.85
CFunction · 0.70

Tested by

no test coverage detected