Peripheral.py 669 B

1234567891011121314151617181920
  1. # Copyright (c) 2019 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. class Peripheral:
  4. """Data class that represents a peripheral for a printer.
  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. """
  9. def __init__(self, peripheral_type: str, name: str) -> None:
  10. """Constructs the peripheral.
  11. :param peripheral_type: A unique ID for the type of peripheral.
  12. :param name: A human-readable name for the peripheral.
  13. """
  14. self.type = peripheral_type
  15. self.name = name