Skip to content

Instantly share code, notes, and snippets.

@plasticmind
Created April 13, 2020 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plasticmind/44b0d88ef18559282250e91868ad7f3f to your computer and use it in GitHub Desktop.
Save plasticmind/44b0d88ef18559282250e91868ad7f3f to your computer and use it in GitHub Desktop.
import tkinter as tk
from string import ascii_letters
from datetime import date
my_date = date.today()
my_date.strftime('%A')
def show_date():
s = my_date.strftime('%a').upper()
#s = 'Manual text here...'
l.config(text=s, bg='black', fg='white')
root.after(100, show_date)
root = tk.Tk()
root.wm_overrideredirect(True)
root.config(bg='black')
root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight()))
root.bind("<Escape>", lambda x: root.destroy())
l = tk.Label(text='', font=('Barlow Semi Condensed', 400, 'bold'))
l.pack(expand=True)
show_date()
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment