Peripheral.py 629 B

12345678910111213141516
  1. # Copyright (c) 2019 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. ## Data class that represents a peripheral for a printer.
  4. #
  5. # Output device plug-ins may specify that the printer has a certain set of
  6. # peripherals. This set is then possibly shown in the interface of the monitor
  7. # stage.
  8. class Peripheral:
  9. ## Constructs the peripheral.
  10. # \param type A unique ID for the type of peripheral.
  11. # \param name A human-readable name for the peripheral.
  12. def __init__(self, peripheral_type: str, name: str) -> None:
  13. self.type = peripheral_type
  14. self.name = name