Is there a way to make the terminal blink when python script finishes running?

Question:

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?

Asked By: kay

||

Answers:

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
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.