Marius Stanciu hace 6 años
padre
commit
9650696a13
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      flatcamGUI/GUIElements.py

+ 7 - 1
flatcamGUI/GUIElements.py

@@ -565,9 +565,15 @@ class FCSpinner(QtWidgets.QSpinBox):
 
 
 class FCDoubleSpinner(QtWidgets.QDoubleSpinBox):
-    def __init__(self, parent=None):
+    def __init__(self, parent=None, decimals=None):
         super(FCDoubleSpinner, self).__init__(parent)
         self.readyToEdit = True
+
+        if decimals:
+            dec = int(decimals)
+        else:
+            dec = int(4)
+
         self.editingFinished.connect(self.on_edit_finished)
         self.lineEdit().installEventFilter(self)