-
-
Save quandyfactory/4454693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I accidentally created this anonymously, so I'm forking to my own gist.