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

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