Issue
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?
Solution
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.")
Answered By - Ian Moote
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.