Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. import time
  2. from tkinter import Tk, Label
  3.  
  4.  
  5. class WindowLog(object):
  6.  
  7.     def __init__(self, master):
  8.         self.master = master
  9.         self.master.title("You started at:")
  10.         self.master.config(bg="#420")
  11.         self.master.resizable(0, 0)
  12.  
  13.  
  14. if __name__ == "__main__":
  15.     init_time = time.asctime()
  16.     app = Tk()
  17.  
  18.     window = WindowLog(app)
  19.     Label(app, text=init_time).grid(row=0, column=0)
  20.     app.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement