- trying to optimize Gerber Editor selection with the mouse

- optimized some of the strings
This commit is contained in:
Marius Stanciu
2020-11-03 06:21:53 +02:00
committed by Marius
parent b6d4d5e85f
commit 5170505f53
46 changed files with 5790 additions and 5714 deletions

View File

@@ -73,7 +73,7 @@ class TclCommandImportSvg(TclCommandSignaled):
if obj_type != "geometry" and obj_type != "gerber":
self.raise_tcl_error("Option type can be 'geometry' or 'gerber' only, got '%s'." % obj_type)
with self.app.proc_container.new("Import SVG"):
with self.app.proc_container.new('%s' % _("Importing ...")):
# Object creation
self.app.app_obj.new_object(obj_type, outname, obj_init, plot=False)

View File

@@ -78,7 +78,7 @@ class TclCommandOpenDXF(TclCommandSignaled):
units = self.app.defaults['units'].upper()
with self.app.proc_container.new("Open DXF"):
with self.app.proc_container.new('%s' % _("Opening ...")):
# Object creation
ret_val = self.app.app_obj.new_object(obj_type, outname, obj_init, plot=False)

View File

@@ -74,7 +74,7 @@ class TclCommandOpenSVG(TclCommandSignaled):
units = self.app.defaults['units'].upper()
with self.app.proc_container.new("Import SVG"):
with self.app.proc_container.new(_("Working ...")):
# Object creation
ret_val = self.app.app_obj.new_object(obj_type, outname, obj_init, plot=False)

View File

@@ -288,12 +288,12 @@ class TclCommandPanelize(TclCommand):
self.app.app_obj.new_object("geometry", outname, job_init_geometry, plot=False, autoselected=True)
if threaded is True:
self.app.proc_container.new("Generating panel ... Please wait.")
self.app.proc_container.new(_("Working ..."))
def job_thread(app_obj):
try:
panelize_2()
app_obj.inform.emit("[success] Panel created successfully.")
app_obj.inform.emit('[success]' % _("Done."))
except Exception as ee:
log.debug(str(ee))
return
@@ -302,4 +302,4 @@ class TclCommandPanelize(TclCommand):
self.app.worker_task.emit({'fcn': job_thread, 'params': [self.app]})
else:
panelize_2()
self.app.inform.emit("[success] Panel created successfully.")
self.app.inform.emit('[success]' % _("Done."))