# Python error - Code is not running as expected on double click

**URL:** <https://forum.guvi.in/t/python-error-code-is-not-running-as-expected-on-double-click/565>\
**Category:** General\
**Created:** [May 2, 2026, 6:21am UTC](https://forum.guvi.in/t/python-error-code-is-not-running-as-expected-on-double-click/565 "2026-05-02T06:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![devadathanp16858491](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@devadathanp16858491](https://forum.guvi.in/u/devadathanp16858491)\
**Post date:** [May 2, 2026, 6:21am UTC](https://forum.guvi.in/t/python-error-code-is-not-running-as-expected-on-double-click/565/1 "2026-05-02T06:21:05Z")

</div>

Team,

I have a doubt regarding a python related issue where the code uses the t k inter file dialog for

collecting files

but in one system when I try to double click and make the code work what happens is the screen blinks and no file dialog box appears and no error is also generated

FYI

I have called the main loop

As a check I have included a input() on last of the code

but on doing what ever I know the code is not working in the system does any body know why this is happening
