MCPcopy Create free account
hub / github.com/Kitware/VTK / onKeyPress

Method onKeyPress

Wrapping/Python/vtkmodules/test/Testing.py:207–209  ·  view source on GitHub ↗
(caller, eventId)

Source from the content-addressed store, hash-verified

205 events = []
206
207 def onKeyPress(caller, eventId):
208 print('key is "' + caller.GetKeySym() + '"')
209 events.append((time.time() - startTime, eventId, caller.GetKeySym()))
210
211 def onButton(caller, eventId):
212 events.append((time.time() - startTime, eventId))

Callers

nothing calls this directly

Calls 4

GetKeySymMethod · 0.80
timeMethod · 0.80
printFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected