I have some idea but do not how to program it.
I have GUI app MyProg in Python (tkinter), which can do 4 things: