code: def resize(self, width, height):
          
          if self.example:
              self.example.resize(width, height)
docs: Should be called every time window is resized
          so the example can adapt to the new size if needed