Searched refs:action_dict (Results 1 – 2 of 2) sorted by relevance
48 def parse_action(action_dict): argument50 if action_dict['type'] == 'drag':51 return DragAction(tuple(action_dict['start']),52 tuple(action_dict['end']),53 action_dict['duration'],54 action_dict['points'])55 elif action_dict['type'] == 'press':56 return PressAction(action_dict['button'], action_dict['press_type'])58 raise TypeError('Unsupported action type: %s' % action_dict['type'])