Created
March 17, 2015 22:28
-
-
Save aGupieWare/71205e19c47f21b3e93e to your computer and use it in GitHub Desktop.
PyGest Code Snippet 2-1
This file contains hidden or 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 __init__(self, root_object): | |
| self.root = root_object | |
| self.set_up() | |
| def set_up(self): | |
| """ | |
| Run necessary view and widget configuration methods. | |
| """ | |
| self.configure_root() | |
| def configure_root(self): | |
| """ | |
| Configure the root window of the app via the self.root attribute. | |
| """ | |
| logging.info("configure_root method called...") | |
| self.root.columnconfigure(0, weight=1) | |
| self.root.rowconfigure(0, weight=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment