- Excellon Editor: fixed mouse right click was always doing popup context menu

- GUIElements.FCEntry2(): added a try-except clause
This commit is contained in:
Marius Stanciu
2019-05-01 18:38:14 +03:00
parent 52ab274b1c
commit 72724eafae
4 changed files with 48 additions and 42 deletions

View File

@@ -367,7 +367,11 @@ class FCEntry2(FCEntry):
self.readyToEdit = True
def set_value(self, val):
self.setText('%.4f' % float(val))
try:
fval = float(val)
except ValueError:
return
self.setText('%.4f' % fval)
class EvalEntry(QtWidgets.QLineEdit):