#NEWLINE# def links( self ) : #NEWLINE# #INDENT# ' Create ComponentLinks from the state of the widget\n\n        :rtype: list of ComponentLinks that can be created.\n\n        If no links can be created (e.g. because of missing input),\n        the empty list is returned\n        ' #NEWLINE# ( inp , out ) = self . signature #NEWLINE# if self . is_function ( ) : #NEWLINE# #INDENT# using = self . function . function #NEWLINE# if ( ( not all ( inp ) ) or ( not out ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# link = core . component_link . ComponentLink ( inp , out , using ) #NEWLINE# return [ link ] #NEWLINE# #UNINDENT# if self . is_helper ( ) : #NEWLINE# #INDENT# helper = self . function . helper #NEWLINE# if ( not all ( inp ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# return helper ( * inp )