<viz:cluster>.getClient

Returns the client that triggered the current callback

 

<viz:cluster>.getClient()

 

Remarks

This command is only applicable inside a callback event. It returns the client that triggered the current event.

Return Value

ID of the client that triggered current callback event.

Example

def onkey(key):
    client = viz.cluster.getClient()
    print 'Key pressed on client',client

viz.callback(viz.KEYDOWN_EVENT,onkey,viz.ALLCLIENTS)