def layout(self):
        self.check_label.frame.topleft = self.padding
        check_size = theme.current.label_height - self.padding[1] * 2
        self.check_label.frame.w = check_size
        self.check_label.frame.h = check_size
        self.check_label.layout()

        self.label.shrink_wrap()
        margin = max(self.check_label.margin[0], self.label.margin[0])
        self.label.frame.top = self.padding[1]
        self.label.frame.left = self.check_label.frame.right + margin
        self.label.frame.h = check_size
        self.label.layout()

        self.frame.w = (self.check_label.frame.w + margin +
                        self.label.frame.w + self.padding[0] * 2)
        self.frame.h = theme.current.label_height

        view.View.layout(self)
dataset/ETHPy150Open fictorial/pygameui/pygameui/checkbox.py/Checkbox.layout/original