interaction Module

This module can be used to interact with the AYAB Interface.

class AYABInterface.interaction.Interaction(knitting_pattern, machine)[source]

Bases: object

Interaction with the knitting pattern.

__init__(knitting_pattern, machine)[source]

Create a new interaction object.

Parameters:
__weakref__

list of weak references to the object (if defined)

actions

A list of actions to perform.

Returns:a list of AYABInterface.actions.Action
communicate_through(file)[source]

Setup communication through a file.

Return type:AYABInterface.communication.Communication
communication

The communication with the controller.

:rtype:AYABInterface.communication.Communication