gui: better display of None

This commit is contained in:
Sebastien Bourdeauducq 2015-08-06 18:03:05 +08:00
parent 263ff86e66
commit fd795724f2

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)