Ask coding questions

← Back to all posts
How do I print a message before you press the stop button
mrdragonyt05

TLDR, I want to print a message before you press the stop button. Is there something in python that I can use that can perform this action?

Thanks.

Voters
mrdragonyt05
Comments
hotnewtop
MrVoo

Why would you need this?

xfinnbar

The stop button will kill the process (like through task manager in windows), so you can't do anything after the process ends.

mrdragonyt05

@xfinnbar I mean like is there a way to do it before it kills the process

xfinnbar
mrdragonyt05

Also I reuploaded because I accidently did something :P