def __init__(self, color=None): SimpleBin.__init__(self) self.view = FlippedView.alloc().init() if color is not None: self.set_background_color(color)
def calc_size_request(self): drawing_size = drawing.DrawingMixin.calc_size_request(self) container_size = SimpleBin.calc_size_request(self) return (max(container_size[0], drawing_size[0]), max(container_size[1], drawing_size[1]))
def __init__(self): SimpleBin.__init__(self) self.view = DrawingView.alloc().init()