This commit is contained in:
neo-dl 2022-10-19 12:59:16 +02:00
parent 5931383f50
commit 44546e390a

View File

@ -358,7 +358,9 @@ class Test(Widget):
@staticmethod
def labellify(v):
if not isinstance(v, str):
if v is None:
v = "-"
elif isinstance(v, float):
v = f"{v:.1f}"
return v