- fixed a bug where end_xy parameter in Drilling Tool was not used

- fixed an issue in Delete All method in the app_Main.py
This commit is contained in:
Marius Stanciu
2020-09-24 14:37:06 +03:00
parent 7e4585e65f
commit dab3a5f703
6 changed files with 37 additions and 7 deletions

View File

@@ -700,6 +700,16 @@ class NumericalEvalTupleEntry(EvalEntry):
validator = QtGui.QRegExpValidator(regex, self)
self.setValidator(validator)
def get_value(self):
raw = str(self.text()).strip(' ')
try:
evaled = eval(raw)
except Exception as e:
if raw != '':
log.error("Could not evaluate val: %s, error: %s" % (str(raw), str(e)))
return None
return evaled
class FCColorEntry(QtWidgets.QFrame):