SaveFigureThread update
This commit is contained in:
4
base.py
4
base.py
@@ -127,7 +127,8 @@ class BaseWindow(QMainWindow):
|
||||
idx) if idx > 0 else name_base
|
||||
save_dest = (folder_name + date_str + '_' + name +
|
||||
'.png')
|
||||
|
||||
print("name", name)
|
||||
print("save destination", save_dest, flush=True)
|
||||
if not os.path.exists(save_dest):
|
||||
if self.all_data['Figure data'][canvas][
|
||||
idx] is not None:
|
||||
@@ -170,6 +171,7 @@ class BaseWindow(QMainWindow):
|
||||
#Not so nice.. send a signal instead?
|
||||
if attach_files:
|
||||
self.parent.attach_files = attach_files
|
||||
print(attach_files, flush=True)
|
||||
print("All files attached", flush=True)
|
||||
else:
|
||||
print("No files to attach", flush=True)
|
||||
|
||||
Reference in New Issue
Block a user