def SigIntHand(SIG, FRM):
    print('Please Right click-copy. Ctrl-C does not work on the cmd prompt')
signal.signal(signal.SIGINT, SigIntHand)
How to prevent termination of a running program using "ctrl+c" in Linux using python?