Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 19th, 2012  |  syntax: Python  |  size: 0.27 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import timeit
  2. from Tkinter import Tk
  3.  
  4. root=Tk()
  5. root.overrideredirect(True)
  6. root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(),root.winfo_screenheight()))
  7. def conf():
  8.   root.configure(background='red')
  9. print(timeit.Timer(stmt=conf).timeit(1))
  10. root.mainloop()