- finished the Calibration Tool

- changed the Scale Entry in Object UI to FCEntry() GUI element in order to allow expressions to be entered. E.g: 1/25.4
This commit is contained in:
Marius Stanciu
2019-12-12 01:55:04 +02:00
committed by Marius
parent 2c12602b54
commit 1cb66f3faf
8 changed files with 410 additions and 281 deletions

View File

@@ -199,6 +199,7 @@ class FlatCAMObj(QtCore.QObject):
# self.ui.scale_entry.returnPressed.connect(self.on_scale_button_click)
# except (TypeError, AttributeError):
# pass
# self.ui.skew_button.clicked.connect(self.on_skew_button_click)
def build_ui(self):
@@ -267,7 +268,7 @@ class FlatCAMObj(QtCore.QObject):
def on_scale_button_click(self):
self.read_form()
factor = self.ui.scale_entry.get_value()
factor = eval(self.ui.scale_entry.get_value())
# if factor is 1.0 do nothing, there is no point in scaling with a factor of 1.0
if factor == 1.0:
return