parameters: (dad, obj_highl)
docstring: Set the Highlight to obj_highl only
docstring_summary: Set the Highlight to obj_highl only
docstring_tokens: Set the Highlight to obj_highl only
function: def set_object_highlight(dad, obj_highl):
      """Set the Highlight to obj_highl only"""
      if dad.highlighted_obj:
          dad.highlighted_obj.drag_unhighlight()
          dad.highlighted_obj = None
      if obj_highl:
          obj_highl.drag_highlight()
          dad.highlighted_obj = obj_highl
function_tokens: def set_object_highlight ( dad , obj_highl ) : if dad . highlighted_obj : dad . highlighted_obj . drag_unhighlight ( ) dad . highlighted_obj = None if obj_highl : obj_highl . drag_highlight ( ) dad . highlighted_obj = obj_highl