- work in Gerber Export: finished the body export but have some errors with clear geometry (LPC)

This commit is contained in:
Marius Stanciu
2019-05-07 21:13:20 +03:00
parent 825b3e5e1e
commit bdd13a3800
5 changed files with 210 additions and 178 deletions

View File

@@ -3864,16 +3864,17 @@ class FlatCAMGrbEditor(QtCore.QObject):
def hide_tool(self, tool_name):
# self.app.ui.notebook.setTabText(2, _("Tools"))
if tool_name == 'all':
self.apertures_frame.hide()
if tool_name == 'select':
self.apertures_frame.show()
if tool_name == 'buffer' or tool_name == 'all':
self.buffer_tool_frame.hide()
if tool_name == 'scale' or tool_name == 'all':
self.scale_tool_frame.hide()
try:
if tool_name == 'all':
self.apertures_frame.hide()
if tool_name == 'select':
self.apertures_frame.show()
if tool_name == 'buffer' or tool_name == 'all':
self.buffer_tool_frame.hide()
if tool_name == 'scale' or tool_name == 'all':
self.scale_tool_frame.hide()
except Exception as e:
log.debug("FlatCAMGrbEditor.hide_tool() --> %s" % str(e))
self.app.ui.notebook.setCurrentWidget(self.app.ui.selected_tab)