Wake the Application
(NSApp)
| 81 | |
| 82 | |
| 83 | def _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() |
no test coverage detected