Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 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. class View():
  16. """
  17. The main view class for the PyGest tkinter interface.
  18. """
  19. def __init__(self, root_object):
  20. self.root = root_object
  21.  
  22. def main():
  23. """
  24. Main function to run the PyGest GUI application.
  25. """
  26. logging.basicConfig(format='[%(asctime)s] ln:%(lineno)d %(levelname)s: %(message)s', datefmt='%I:%M:%s', level=logging.DEBUG)
  27. logging.info('{} app started. Logger running.'.format(title))
  28.  
  29. # Declare the tkinter Tk() object as root
  30. root = tkinter.Tk()
  31.  
  32. # Pass in its title
  33. root.title(title)
  34.  
  35. # Pass the root object to our main View() class
  36. gui = View(root)
  37.  
  38. # Run the Tk() object's main loop
  39. root.mainloop()
  40.  
  41. if __name__ == "__main__":
  42. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement