- modified the panelize TclCommand to take advantage of the new panelize() function; added a 'threaded' parameter (default value is 1) which controls the execution of the panelize TclCommand: threaded or non-threaded

This commit is contained in:
Marius Stanciu
2019-01-25 18:57:44 +02:00
committed by Marius S
parent d88d334867
commit 006b0c8ecb
3 changed files with 193 additions and 55 deletions

View File

@@ -266,15 +266,15 @@ class Panelize(FlatCAMTool):
rows -= 1
panel_lengthy = ((ymax - ymin) * rows) + (spacing_rows * (rows - 1))
def clean_temp():
# deselect all to avoid delete selected object when run delete from shell
self.app.collection.set_all_inactive()
for del_obj in self.objs:
self.app.collection.set_active(del_obj.options['name'])
self.app.on_delete()
self.objs[:] = []
# def clean_temp():
# # deselect all to avoid delete selected object when run delete from shell
# self.app.collection.set_all_inactive()
#
# for del_obj in self.objs:
# self.app.collection.set_active(del_obj.options['name'])
# self.app.on_delete()
#
# self.objs[:] = []
# def panelize():
# if panel_obj is not None:
@@ -463,7 +463,8 @@ class Panelize(FlatCAMTool):
self.app.inform.emit("[success]Panel created successfully.")
except Exception as e:
proc.done()
raise e
log.debug(str(e))
return
proc.done()
self.app.collection.promise(self.outname)