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
  • 58,479
  • 27
  • 141
  • 176
user429400
  • 3,025
  • 12
  • 45
  • 66

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,732
  • 2
  • 26
  • 35