forked from M-Labs/artiq
1
0
Fork 0

gui: better display of None

This commit is contained in:
Sebastien Bourdeauducq 2015-08-06 18:03:05 +08:00
parent 263ff86e66
commit fd795724f2
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ def force_spinbox_value(spinbox, value):
def short_format(v):
if v is None:
return "None"
t = type(v)
if t is int or t is float:
return str(v)