diff --git a/CHANGELOG.md b/CHANGELOG.md index 792f0321..3345bf61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta 25.06.2020 - made sure that when trying to view the source but no object is selected, the messages are correct +- wip for Tool Drilling 23.06.2020 diff --git a/appTools/ToolDrilling.py b/appTools/ToolDrilling.py index 48a4c7b9..210e5a68 100644 --- a/appTools/ToolDrilling.py +++ b/appTools/ToolDrilling.py @@ -190,6 +190,7 @@ class ToolDrilling(AppTool, Excellon): self.on_object_changed() self.set_tool_ui() self.build_ui() + # all the tools are selected by default self.ui.tools_table.selectAll() @@ -454,7 +455,7 @@ class ToolDrilling(AppTool, Excellon): # Find no of drills for the current tool try: - drill_cnt = len(self.excellon_tools[tool_no]["drills"]) # variable to store the nr of drills per tool + drill_cnt = len(self.excellon_tools[tool_no]["drills"]) # variable to store the nr of drills per tool except KeyError: drill_cnt = 0 tot_drill_cnt += drill_cnt @@ -639,6 +640,7 @@ class ToolDrilling(AppTool, Excellon): ) def on_object_changed(self): + log.debug("ToolDrilling.on_object_changed()") # load the Excellon object self.obj_name = self.ui.object_combo.currentText() @@ -669,6 +671,8 @@ class ToolDrilling(AppTool, Excellon): self.ui.tool_data_label.setText( "%s: %s" % (_('Parameters for'), _("No Tool Selected")) ) + else: + self.ui.generate_cnc_button.setDisabled(False) def ui_connect(self):