mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-19 16:10:01 +02:00
adds note that coloured enum values must be unique
This commit is contained in:
parent
5333acd583
commit
ba24deecb7
@ -638,6 +638,9 @@ my_service.status = MyStatus.FAILED
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
**Note** that each enumeration name and value must be unique.
|
||||||
|
This means that you should use different colour formats when you want to use a colour multiple times.
|
||||||
|
|
||||||
#### Extending with New Components
|
#### Extending with New Components
|
||||||
|
|
||||||
Users can also extend the library by creating custom components. This involves defining the behavior on the Python backend and the visual representation on the frontend. For those looking to introduce new components, the [guide on adding components](https://pydase.readthedocs.io/en/latest/dev-guide/Adding_Components/) provides detailed steps on achieving this.
|
Users can also extend the library by creating custom components. This involves defining the behavior on the Python backend and the visual representation on the frontend. For those looking to introduce new components, the [guide on adding components](https://pydase.readthedocs.io/en/latest/dev-guide/Adding_Components/) provides detailed steps on achieving this.
|
||||||
|
@ -56,4 +56,9 @@ class ColouredEnum(Enum):
|
|||||||
my_service = StatusExample()
|
my_service = StatusExample()
|
||||||
my_service.status = MyStatus.FAILED
|
my_service.status = MyStatus.FAILED
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note
|
||||||
|
----
|
||||||
|
Each enumeration name and value must be unique. This means that you should use
|
||||||
|
different colour formats when you want to use a colour multiple times.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user