Parcourir la source

- fixed the new InputDialog widget to set its passed values in the constructor

Marius Stanciu il y a 5 ans
Parent
commit
ec97e7470c
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 2 0
      CHANGELOG.md
  2. 3 0
      appGUI/GUIElements.py

+ 2 - 0
CHANGELOG.md

@@ -12,6 +12,8 @@ CHANGELOG for FlatCAM beta
 - in Gerber Editor made the selection multithreaded in a bid to get more performance but until Shapely will start working on vectorized geometry this don't yield too much improvement
 - in Gerber Editor, for selection now the intersection of the click point and the geometry is determined for chunks of the original geometry, each chunk gets done in a separate process
 - updated the French translation (by Olivier Cornet)
+- fixed the new InputDialog widget to set its passed values in the constructor
+
 
 5.11.2020
 

+ 3 - 0
appGUI/GUIElements.py

@@ -2250,6 +2250,9 @@ class FCInputDoubleSpinner(QtWidgets.QDialog):
             self.text = text
 
         self.wdg = FCDoubleSpinner()
+        self.wdg.set_precision(self.decimals)
+        self.wdg.set_range(self.min, self.max)
+        self.wdg.set_step(self.step)
         self.wdg.set_value(self.init_value)
 
         QBtn = QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel