I created a python script to call some API. I want to be informed when it's finished. Is there a way to prevent me from checking the status in the terminal constantly? For example, Can python make the terminal blink or something when it's done?
CodePudding user response:
There is a way to flash the tray icon in Windows, and a different way to do it in Linux/Mac, but I'm not aware of an os-agnostic way of doing that.
You can pop up a window using TkInter, though. TkInter comes with Python.
from tkinter import messagebox
messagebox.showinfo(title="Done", message="Dust! This task is done.")