From 32839637d3518be739007f285d501a8133a4b079 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 29 Nov 2020 15:48:50 +0200 Subject: [PATCH] - in Geometry Editor - the Length and Vertex Points GUI elements are now read only since it does not make sense to edit them --- CHANGELOG.md | 1 + appEditors/AppGeoEditor.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e525531..409a92bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ CHANGELOG for FlatCAM beta - in Geometry Editor - improvement in update of the whole Geometry Editor UI on shape selection on canvas - in Geometry Editor - fixed multiple plotting for the same selection - in Geometry Editor - made sure that selecting shapes on canvas will update the UI - final fix +- in Geometry Editor - the Length and Vertex Points GUI elements are now read only since it does not make sense to edit them 28.11.2020 diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index 928b0463..cc0ba776 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -3474,6 +3474,8 @@ class AppGeoEditor(QtCore.QObject): _("The length of the geometry element.") ) self.geo_len_entry = FCEntry(decimals=self.decimals) + self.geo_len_entry.setReadOnly(True) + grid0.addWidget(len_lbl, 20, 0) grid0.addWidget(self.geo_len_entry, 20, 1, 1, 2) @@ -3496,6 +3498,7 @@ class AppGeoEditor(QtCore.QObject): _("The number of vertex points in the selected geometry element.") ) self.geo_vertex_entry = FCEntry(decimals=self.decimals) + self.geo_vertex_entry.setReadOnly(True) grid0.addWidget(vertex_lbl, 26, 0) grid0.addWidget(self.geo_vertex_entry, 26, 1, 1, 2)