From ec97e7470c486a2efbe88acedbf25349082aad44 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 6 Nov 2020 14:28:24 +0200 Subject: [PATCH] - fixed the new InputDialog widget to set its passed values in the constructor --- CHANGELOG.md | 2 ++ appGUI/GUIElements.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e86c6d3..52467422 100644 --- a/CHANGELOG.md +++ b/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 diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index 2d45f87d..a0027c91 100644 --- a/appGUI/GUIElements.py +++ b/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