Hi,
I noticed that each time a detection script is run using subprocess.call(), the GUI becomes unresponsive until the script finishes. This could affect user experience, especially for long-running tasks.
-
Use threading.Thread to run detection scripts in parallel without blocking the main GUI loop.
-
Use sys.executable instead of hardcoding "python" to ensure scripts run in the correct Python environment (especially important for virtualenvs).
-
Keep the interface smooth and responsive
-
Improve maintainability and compatibility
-
Prepare the GUI for production-level polish
@Gagandeep-2003 I can provide the updated code or create a PR once approved.