aboutsummaryrefslogtreecommitdiff
path: root/NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py
diff options
context:
space:
mode:
authorJakob Stendahl <14180120+JakobST1n@users.noreply.github.com>2021-10-11 09:07:02 +0200
committerGitHub <noreply@github.com>2021-10-11 09:07:02 +0200
commit14335646c5f31047e51cbaa038fc3cec92e49b90 (patch)
tree51e27908703c0b2724ac67554642acc9b0e3eb7b /NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py
parent0c313d3bf124e42b34f14c7056ec7ac941242401 (diff)
downloadLuxcena-Neo-14335646c5f31047e51cbaa038fc3cec92e49b90.tar.gz
Luxcena-Neo-14335646c5f31047e51cbaa038fc3cec92e49b90.zip
:construction: Add actual classtype to super calls
Diffstat (limited to 'NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py')
-rw-r--r--NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py b/NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py
index ce0fb62..4da3093 100644
--- a/NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py
+++ b/NeoRuntime/Runtime/luxcena_neo/neo_behaviour.py
@@ -216,7 +216,7 @@ class IntegerVariable(Variable):
try:
value = int(value)
if (self.__min <= value <= self.__max):
- super(ColorVariable, type(self)).value.fset(self, value)
+ super(IntegerVariable, type(self)).value.fset(self, value)
else:
print("Attempted to set {} to {} but range is [{},{}].".format(self.name, value, self.__min, self.__max))
except ValueError:
@@ -238,7 +238,7 @@ class FloatVariable(Variable):
try:
value = float(value)
if (self.__min <= value <= self.__max):
- super(ColorVariable, type(self)).value.fset(self, value)
+ super(FloatVariable, type(self)).value.fset(self, value)
else:
print("Attempted to set {} to {} but range is [{},{}].".format(self.name, value, self.__min, self.__max))
except ValueError:
@@ -261,5 +261,6 @@ class BooleanVariable(Variable):
def value(self, value):
try:
value = bool(value)
+ super(BooleanVariable, type(self)).value.fset(self, value)
except:
print("Attempted to set {} to \"{}\", which is not a valid bool...".format(self.name, value))