From c3ac752c125d49f5eac4e90ac6bacf76a8d48ea2 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 6 Sep 2021 01:25:05 +0300 Subject: [PATCH] - small change --- appGUI/ObjectUI.py | 23 +++++++++-------------- appObjects/FlatCAMCNCJob.py | 2 -- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/appGUI/ObjectUI.py b/appGUI/ObjectUI.py index 81be587c..9e421a4b 100644 --- a/appGUI/ObjectUI.py +++ b/appGUI/ObjectUI.py @@ -1381,20 +1381,6 @@ class CNCObjectUI(ObjectUI): grid_par.setColumnStretch(1, 1) self.gp_frame.setLayout(grid_par) - # Annotation - self.annotation_cb = FCCheckBox(_("Display Annotation")) - self.annotation_cb.setToolTip( - _("This selects if to display text annotation on the plot.\n" - "When checked it will display numbers in order for each end\n" - "of a travel line.") - ) - grid_par.addWidget(self.annotation_cb, 0, 0, 1, 3) - - self.separator_line = QtWidgets.QFrame() - self.separator_line.setFrameShape(QtWidgets.QFrame.Shape.HLine) - self.separator_line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) - grid_par.addWidget(self.separator_line, 2, 0, 1, 3) - # Travelled Distance self.t_distance_label = FCLabel("%s:" % _("Travelled distance")) self.t_distance_label.setToolTip( @@ -1439,6 +1425,15 @@ class CNCObjectUI(ObjectUI): ) grid_par.addWidget(self.snippets_cb, 12, 0, 1, 3) + # Annotation + self.annotation_cb = FCCheckBox(_("Display Annotation")) + self.annotation_cb.setToolTip( + _("This selects if to display text annotation on the plot.\n" + "When checked it will display numbers in order for each end\n" + "of a travel line.") + ) + grid_par.addWidget(self.annotation_cb, 14, 0, 1, 3) + # ############################################################################################################# # CNC Tool Table Frame # ############################################################################################################# diff --git a/appObjects/FlatCAMCNCJob.py b/appObjects/FlatCAMCNCJob.py index 4c1ef5fc..2f551702 100644 --- a/appObjects/FlatCAMCNCJob.py +++ b/appObjects/FlatCAMCNCJob.py @@ -564,7 +564,6 @@ class CNCJobObject(FlatCAMObj, CNCjob): } """) - self.ui.separator_line.hide() self.ui.annotation_cb.hide() else: self.ui.level.setText('%s' % _('Advanced')) @@ -575,7 +574,6 @@ class CNCJobObject(FlatCAMObj, CNCjob): } """) - self.ui.separator_line.show() self.ui.annotation_cb.show() def ui_connect(self):