- some changed in the Excellon UI

This commit is contained in:
Marius Stanciu 2020-01-30 05:55:46 +02:00 committed by Marius
parent 123ae16b20
commit a44d7b97b5
3 changed files with 15 additions and 3 deletions

View File

@ -2868,7 +2868,18 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
sel_rows = row if type(row) == list else [row]
if not sel_rows:
sel_rows = [0]
self.ui.tool_data_label.setText(
"<b>%s: <font color='#0000FF'>%s</font></b>" % (_('Parameters for'), _("No Tool Selected"))
)
self.ui.generate_cnc_button.setDisabled(True)
self.ui.generate_milling_button.setDisabled(True)
self.ui.generate_milling_slots_button.setDisabled(True)
self.ui_connect()
return
else:
self.ui.generate_cnc_button.setDisabled(False)
self.ui.generate_milling_button.setDisabled(False)
self.ui.generate_milling_slots_button.setDisabled(False)
if len(sel_rows) == 1:
# update the QLabel that shows for which Tool we have the parameters in the UI form

View File

@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
30.01.2020
- remade GUI in Tool Cutout, Tool Align Objects, Tool Panelize
- some changed in the Excellon UI
29.01.2020

View File

@ -1248,7 +1248,7 @@ class ExcellonObjectUI(ObjectUI):
warning_lbl = QtWidgets.QLabel(
_(
"Add / Select at least one tool in the tool-table.\n"
"Click the header to select all, or Ctrl + LMB\n"
"Click the # header to select all, or Ctrl + LMB\n"
"for custom selection of tools."
))
@ -1946,7 +1946,7 @@ class GeometryObjectUI(ObjectUI):
warning_lbl = QtWidgets.QLabel(
_(
"Add / Select at least one tool in the tool-table.\n"
"Click the header to select all, or Ctrl + LMB\n"
"Click the # header to select all, or Ctrl + LMB\n"
"for custom selection of tools."
))
self.grid4.addWidget(warning_lbl, 6, 0, 1, 2)