- renamed SilkScreen Tool to Substract Tool and move it's menu location in Edit -> Conversion

This commit is contained in:
Marius Stanciu
2019-04-30 13:16:32 +03:00
committed by Marius
parent ac64f56240
commit eb00176519
6 changed files with 22 additions and 19 deletions

View File

@@ -21,9 +21,9 @@ if '_' not in builtins.__dict__:
_ = gettext.gettext
class ToolSilk(FlatCAMTool):
class ToolSub(FlatCAMTool):
toolName = _("Silkscreen Tool")
toolName = _("Substract Tool")
def __init__(self, app):
self.app = app
@@ -118,7 +118,7 @@ class ToolSilk(FlatCAMTool):
self.intersect_btn.clicked.connect(self.on_intersection_click)
def install(self, icon=None, separator=None, **kwargs):
FlatCAMTool.install(self, icon, separator, shortcut='ALT+N', **kwargs)
FlatCAMTool.install(self, icon, separator, shortcut='ALT+W', **kwargs)
def run(self, toggle=True):
self.app.report_usage("ToolNonCopperClear()")
@@ -239,7 +239,7 @@ class ToolSilk(FlatCAMTool):
:return:
"""
log.debug("ToolSilk --> Periodic Check started.")
log.debug("ToolSub --> Periodic Check started.")
try:
self.check_thread.stop()
@@ -272,7 +272,7 @@ class ToolSilk(FlatCAMTool):
self.app.worker_task.emit({'fcn': self.new_silkscreen_object,
'params': [outname]})
log.debug("ToolSilk --> Periodic check finished.")
log.debug("ToolSub --> Periodic check finished.")
except Exception:
traceback.print_exc()

View File

@@ -16,7 +16,7 @@ from flatcamTools.ToolTransform import ToolTransform
from flatcamTools.ToolSolderPaste import SolderPaste
from flatcamTools.ToolPcbWizard import PcbWizard
from flatcamTools.ToolPDF import ToolPDF
from flatcamTools.ToolSilk import ToolSilk
from flatcamTools.ToolSub import ToolSub
from flatcamTools.ToolShell import FCShell