interaction Module¶
This module can be used to interact with the AYAB Interface.
-
class
AYABInterface.interaction.Interaction(knitting_pattern, machine)[source]¶ Bases:
objectInteraction with the knitting pattern.
-
__init__(knitting_pattern, machine)[source]¶ Create a new interaction object.
Parameters: - knitting_pattern¶ – a
KnittingPattern - machine¶ (AYABInterface.machines.Machine) – the machine to knit on
- knitting_pattern¶ – a
-
__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
-