class BorderedBoxLayout(BoxLayout): """BoxLayout с рамкой """ def on_size(self, instance, value): """каллбак изменения размера лэйаута """ with self.canvas: Color(1, 0, 0, 1) Line( width=2, rectangle=(self.x, self.y, self.width, self.height) )
ObservableList
button