Hello,
That entire statement is iterating through the gestures inside a frame, which you can access with the variable g. Think of it as (for i in collection_of_i). More specifically, the symbol ( : ) is assigning, iteratively, each of the gestures value to the variable g.
For further information, you can search for 'for loops programming' in Google.