parameters: (self, ap)
docstring: ! Set AP.
          @param self The object pointer.
          @param ap The AP node
          @return none
docstring_summary: ! Set AP.
docstring_tokens: ! Set AP .
function: def set_ap(self, ap):
          """! Set AP.
          @param self The object pointer.
          @param ap The AP node
          @return none
          """
          if ap is self.node2:
              return
          if self.node2 is not None:
              self.node2.remove_link(self)
          self.node2 = ap
          if self.node2 is None:
              self.canvas_item.set_property("visibility", GooCanvas.CanvasItemVisibility.HIDDEN)
          else:
              self.node2.add_link(self)
              self.canvas_item.set_property("visibility", GooCanvas.CanvasItemVisibility.VISIBLE)
          self.update_points()
function_tokens: def set_ap ( self , ap ) : if ap is self . node2 : return if self . node2 is not None : self . node2 . remove_link ( self ) self . node2 = ap if self . node2 is None : self . canvas_item . set_property ( "visibility" , GooCanvas . CanvasItemVisibility . HIDDEN ) else : self . node2 . add_link ( self ) self . canvas_item . set_property ( "visibility" , GooCanvas . CanvasItemVisibility . VISIBLE ) self . update_points ( )