Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. """
  2. pygest.py
  3.  
  4. A simple Python tkinter GUI application for processing file hashes.
  5.  
  6. blog.agupieware.com
  7. """
  8.  
  9. import tkinter
  10. import hashlib
  11. import logging
  12.  
  13. title = "PyGest"
  14.  
  15. def main():
  16. """
  17. Main function to run the PyGest GUI application.
  18. """
  19. logging.basicConfig(format='[%(asctime)s] ln:%(lineno)d %(levelname)s: %(message)s', datefmt='%I:%M:%s', level=logging.DEBUG)
  20. logging.info('{} app started. Logger running.'.format(title))
  21.  
  22. # Declare the tkinter Tk() object as root
  23. root = tkinter.Tk()
  24.  
  25. # Pass in its title
  26. root.title(title)
  27.  
  28. # Pass the root object to our main View() class
  29. gui = View(root)
  30.  
  31. # Run the Tk() object's main loop
  32. root.mainloop()
  33.  
  34. if __name__ == "__main__":
  35. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement