0

In my project, I use python module logging to generate execution report in a text file. My question is, how to close a report that is already open with any key on the keyboard ?

I've already checked the package keyboard some other but they didn't work. I need suggestion please !

roman_ka
  • 479
  • 3
  • 12

1 Answers1

0

Welcome to stackoverflow! It will be helpful if you shared more details about your usecase. For instance, is your document open in python runtime or in notepad or some other app?

In general to ask user input any key, I did a quick search and found this on reddit, the gist is that it's not easy to do because it's platform dependent, if you will be satisfied with 'press enter' instead of any key, than it's pretty straight forward

roman_ka
  • 479
  • 3
  • 12