Пример #1
0
	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
Пример #2
0
	def update_layout(self):
		Widget.update_layout(self)
		
		for c in self.children:
			c.update_layout()