- fixed a new bug that did not allow to open the FlatCAM Preferences files by doubleclick in Windows

- added a new feature: Tools Database for Geometry objects; resolved issue #308
This commit is contained in:
Marius Stanciu
2019-11-09 18:04:49 +02:00
committed by Marius
parent c091af35b8
commit ee8719093c
7 changed files with 779 additions and 314 deletions

View File

@@ -376,9 +376,9 @@ class FCEntry(QtWidgets.QLineEdit):
def get_value(self):
return str(self.text())
def set_value(self, val):
def set_value(self, val, decimals=4):
if type(val) is float:
self.setText('%.4f' % val)
self.setText('%.*f' % (decimals, val))
else:
self.setText(str(val))