Skip to content
Snippets Groups Projects

GDP 4.2.10 - Adding Debug mode to GUI.py to run individual modules

Merged mhby1g21 requested to merge GDP-4.2.10 into master
1 file
+ 39
3
Compare changes
  • Side-by-side
  • Inline
@@ -721,16 +721,52 @@ class EdgeNetTab:
def run_all_steps(self):
"""Run all EdgeNet processing steps in sequence"""
if self.is_processing:
messagebox.showwarning("Warning", "A process is already running!")
return
# Start processing in a separate thread
thread = threading.Thread(target=self._run_all_steps_thread)
thread.daemon = True
thread.start()
def _run_all_steps_thread(self):
"""Run all steps sequentially in a thread"""
try:
self.update_status("\nStarting complete pipeline processing...")
# Run EdgeNet and wait for completion
self.update_status("\nStep 1: Running EdgeNet...")
self.run_edge_net()
while self.is_processing:
time.sleep(0.1)
# Check EdgeNet completion status
if self.edge_status.cget("text") == "✓ Complete":
# Run Mesh Split and wait for completion
self.update_status("\nStep 2: Running Mesh Split...")
self.run_mesh_split()
while self.is_processing:
time.sleep(0.1)
# Check Mesh Split completion status
if self.split_status.cget("text") == "✓ Complete":
# Run Blender Flip and wait for completion
self.update_status("\nStep 3: Running Blender Flip...")
self.run_blender_flip()
while self.is_processing:
time.sleep(0.1)
# Final check
if self.flip_status.cget("text") == "✓ Complete":
self.update_status("\nComplete pipeline processing finished successfully!")
self.tab.after(0, messagebox.showinfo, "Success",
"All processing steps completed successfully!")
except Exception as e:
self.update_status(f"Error in processing pipeline: {str(e)}")
messagebox.showerror("Error", f"Processing pipeline failed: {str(e)}")
error_msg = f"Error in processing pipeline: {str(e)}"
self.update_status(f"\n{error_msg}")
self.tab.after(0, messagebox.showerror, "Error", error_msg)
def clean_temp_files(self):
"""Clean up temporary files"""
Loading