Skip to content

Instantly share code, notes, and snippets.

@aGupieWare
Created March 28, 2015 15:45
Show Gist options
  • Select an option

  • Save aGupieWare/9d0c9700fdbad9c20b21 to your computer and use it in GitHub Desktop.

Select an option

Save aGupieWare/9d0c9700fdbad9c20b21 to your computer and use it in GitHub Desktop.
PyGest Code Snippet 3-2
class View():
"""
The main view class for the PyGest tkinter interface.
"""
def __init__(self, root_object):
self.root = root_object
self.mainframe = None
self.set_up()
def set_up(self):
"""
Run necessary view and widget configuration methods.
"""
self.configure_root()
self.configure_mainframe()
self.configure_banner()
self.configure_inputs()
.
.
.
def configure_inputs(self):
"""
Configure app input objects: file path, hash value, radio buttons.
"""
logging.info("We're in the configure_inputs method")
inputs_frame = tkinter.Frame(self.mainframe, background='white', borderwidth=2, relief='flat')
inputs_frame.grid(row=1, column=0, sticky=('N', 'S', 'E', 'W'))
inputs_frame.columnconfigure(0, weight=1)
inputs_frame.rowconfigure(0, weight=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment