Skip to content

Improve GUI Responsiveness & Script Execution in Tkinter Interface #26

@abhigyaabs2

Description

@abhigyaabs2

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.

  • Improvements:
  1. Use threading.Thread to run detection scripts in parallel without blocking the main GUI loop.

  2. Use sys.executable instead of hardcoding "python" to ensure scripts run in the correct Python environment (especially important for virtualenvs).

  • Purpose:
  1. Keep the interface smooth and responsive

  2. Improve maintainability and compatibility

  3. Prepare the GUI for production-level polish

@Gagandeep-2003 I can provide the updated code or create a PR once approved.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions