mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-01-19 02:50:44 +00:00
Sync enum values of commands
This commit is contained in:
parent
f1818bbc5d
commit
9a6a07fd46
|
@ -11,6 +11,7 @@ from pyhon.attributes import HonAttribute
|
||||||
from pyhon.command_loader import HonCommandLoader
|
from pyhon.command_loader import HonCommandLoader
|
||||||
from pyhon.commands import HonCommand
|
from pyhon.commands import HonCommand
|
||||||
from pyhon.parameter.base import HonParameter
|
from pyhon.parameter.base import HonParameter
|
||||||
|
from pyhon.parameter.enum import HonParameterEnum
|
||||||
from pyhon.parameter.range import HonParameterRange
|
from pyhon.parameter.range import HonParameterRange
|
||||||
from pyhon.typedefs import Parameter
|
from pyhon.typedefs import Parameter
|
||||||
|
|
||||||
|
@ -283,4 +284,6 @@ class HonAppliance:
|
||||||
parameter.max = int(base_value.value)
|
parameter.max = int(base_value.value)
|
||||||
parameter.min = int(base_value.value)
|
parameter.min = int(base_value.value)
|
||||||
parameter.step = 1
|
parameter.step = 1
|
||||||
|
elif isinstance(parameter, HonParameterEnum):
|
||||||
|
parameter.values = base_value.values
|
||||||
parameter.value = base_value.value
|
parameter.value = base_value.value
|
||||||
|
|
Loading…
Reference in a new issue