Example #1
0
 def __init__(self, width, height):
     """Initialize the new MockWidget and give it a size."""
     Sizeable.__init__(self)
     Parentable.__init__(self)
     self.width = width
     self.height = height
     self.requested_size = None
     self.allocated_size = None
Example #2
0
 def __init__(self):
     """Initializes a new widget."""
     Sizeable.__init__(self)
     Parentable.__init__(self)
     Widget.__init__(self)