def setData(data):
 global PORT
 if (PORT is None):
  raise RuntimeError('Port address must be set using setPortAddress')
 PORT.setData(data)

def setData ( data ) : global PORT if ( PORT is None ) : raise RuntimeError ( 'Port address must be set using setPortAddress' ) PORT . setData ( data )
set the data to be presented on the parallel port .