Skip to content

Instantly share code, notes, and snippets.

@quandyfactory
Forked from anonymous/getup.py
Created January 4, 2013 18:19
Show Gist options
  • Save quandyfactory/4454693 to your computer and use it in GitHub Desktop.
Save quandyfactory/4454693 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from Tkinter import *
from random import shuffle
things = [
'Make some tea',
'Do some pushups',
'Do some situps',
'Go to the bathroom',
'Go for a walk',
'Do some leg lifts',
'Do some crunches',
'Do a plank'
]
shuffle(things)
text = "\nLive Longer - Time to Get Up!\n\nDo one of these things:\n\n%s\n" % (
'\n'.join(['* %s' % thing for thing in things])
)
root = Tk()
root.geometry("320x370+270+70")
root.title("Get Up")
w = Label(
root, text=text, justify=LEFT, padx=10, pady=10,
relief=RAISED, bg="#fff", bd=4, font=("Arial", 16)
)
w.pack()
root.mainloop()
@quandyfactory
Copy link
Author

I accidentally created this anonymously, so I'm forking to my own gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment