Skip to content

Commit afadb67

Browse files
committed
qtvcp -LCD display widget: fix formatting on floats
1 parent 0cfe1f8 commit afadb67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qtvcp/widgets/simple_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def updateFloatDisplay(self, data):
8888
if self._floatTemplate == '':
8989
self.updateDisplay(data)
9090
return
91-
t = self._floatTemplate.format
91+
t = lambda s: self._floatTemplate % s
9292
self.display(t(data))
9393
except:
9494
self.display('{:.2f}'.format(data))

0 commit comments

Comments
 (0)