Windows10/Python3
So i have the beep.pyw file located in startup:shell, it beeps every 30 minutes automatically when you open the pc.
And i'm using Tkinter to make a GUI widget "widget.py" which contains 4 advices to do in the breaks like (breathing stretching, hydrating etc...) = Done
Problem is :
How to open the widget every time the pc beeps. Should i put both files in one file or how can i add the statement to open the "widget.py" in the "beep.pyw" ?
This is the beep.pyw :
import time
import winsound
beep_time = 30*60
def beep_every60():
while True :
winsound.Beep(2000, 1000)
winsound.Beep(2000, 1000)
time.sleep(beep_time)
beep_every60()