Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cura/PrinterOutput/Peripheral.py')
-rw-r--r--cura/PrinterOutput/Peripheral.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/cura/PrinterOutput/Peripheral.py b/cura/PrinterOutput/Peripheral.py
index 2693b82c36..27d127832b 100644
--- a/cura/PrinterOutput/Peripheral.py
+++ b/cura/PrinterOutput/Peripheral.py
@@ -2,15 +2,19 @@
# Cura is released under the terms of the LGPLv3 or higher.
-## Data class that represents a peripheral for a printer.
-#
-# Output device plug-ins may specify that the printer has a certain set of
-# peripherals. This set is then possibly shown in the interface of the monitor
-# stage.
class Peripheral:
- ## Constructs the peripheral.
- # \param type A unique ID for the type of peripheral.
- # \param name A human-readable name for the peripheral.
+ """Data class that represents a peripheral for a printer.
+
+ Output device plug-ins may specify that the printer has a certain set of
+ peripherals. This set is then possibly shown in the interface of the monitor
+ stage.
+ """
+
def __init__(self, peripheral_type: str, name: str) -> None:
+ """Constructs the peripheral.
+
+ :param peripheral_type: A unique ID for the type of peripheral.
+ :param name: A human-readable name for the peripheral.
+ """
self.type = peripheral_type
self.name = name