Created
April 6, 2015 17:12
-
-
Save aGupieWare/dc7a35967c6d895d7588 to your computer and use it in GitHub Desktop.
PyGest Code Snippet 4-3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
hash_value_label = tkinter.Label(outputs_frame, text="Hash Value:") | |
hash_value_label.grid(row=0, column=0, sticky='E') | |
self.hash_value = tkinter.StringVar() | |
self.hash_value.set("Default Hash Value Text") | |
self.hash_value_entry = tkinter.Entry(outputs_frame, state='readonly', readonlybackground='white', fg='black') | |
self.hash_value_entry.config(textvariable=self.hash_value, relief='flat', highlightthickness=0) | |
self.hash_value_entry.grid(row=0, column=1, sticky=('W')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment