Skip to content

Instantly share code, notes, and snippets.

@aGupieWare
Created April 6, 2015 17:09
Show Gist options
  • Select an option

  • Save aGupieWare/43444a6707769f974bbd to your computer and use it in GitHub Desktop.

Select an option

Save aGupieWare/43444a6707769f974bbd to your computer and use it in GitHub Desktop.
PyGest Code Snippet 4-2
class View():
"""
The main view class for the PyGest tkinter interface.
"""
.
.
.
def configure_outputs(self):
"""
Configure output widgets: hash value, match value.
"""
logging.info("We're in the configure_outputs method")
outputs_frame = tkinter.Frame(self.mainframe, background="green", borderwidth=2, relief='flat')
outputs_frame.grid(row=2, column=0, sticky=('N', 'S', 'E', 'W'))
outputs_frame.rowconfigure(0, weight=1)
outputs_frame.rowconfigure(1, weight=1)
outputs_frame.columnconfigure(0, weight=1)
outputs_frame.columnconfigure(1, weight=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment