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