0

I want to write a Python script that will remind me to take my medicine on sleep/shutdown. (just a simple pop up message). Where do I begin?

(I'm looking for a really simple implementation if it exists. I don't want to put too much effort into this)

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
user429400
  • 3,145
  • 12
  • 49
  • 68

1 Answers1

3

This will tell you how to detect event
Linux:- Detect user logout / shutdown in Python / GTK under Linux - SIGTERM/HUP not received.
Windows :- Python - Windows Shutdown Events

And this will pop up notice

from tkinter import *
root = Tk()
w = Label(root, text="Take your Medicine \n :):)...Get Well Soon...")
w.pack()
root.mainloop()
Community
  • 1
  • 1
perilbrain
  • 7,961
  • 2
  • 27
  • 35