class View: def __init__(self, config={}): self.x = config['x'] if 'x' in config else 0 self.y = config['y'] if 'y' in config else 0 self.width = config['width'] if 'width' in config else 0 self.height = config['height'] if 'height' in config else 0 def dimensions(self): pass # Major -> Minor -> Menu -> Item # # MAJOR # _____________________ # | | # | | # | | # | | # | | # |_____________________| # # # MINOR # _____ # | | # | | # |_____| # # # MENU # _________________ # | | # |_________________| # # # ITEM # # ____ # |____| #