- 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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user