def update_layout(self): Widget.update_layout(self) if self.theme: patch = self.theme['text_input']['image'] self.elements['layout'].x = patch.padding_left self.elements['layout'].width = self.w - patch.padding_left - patch.padding_right
def update_layout(self): Widget.update_layout(self) for c in self.children: c.update_layout()