def _load_label(self, theme): self._label = InputLabel(self._document.text, multiline=False, width=self.width - self._padding * 2, color=theme['text_color'], font_name=theme['font'], font_size=theme['font_size'], **self.get_batch('foreground'))
def _load_label(self, theme): font_name = theme['font'] if self._font: font_name = self._font font_size = theme['font_size'] if self._fs: font_size = self._fs if not self._font_color: self._font_color = theme['text_color'] anchor_y = 'baseline' if self.ml: anchor_y = 'top' self._label = InputLabel(self._document.text, width=self.width - self._padding * 2, color=self._font_color, font_name=font_name, font_size=font_size, multiline=self.ml, anchor_y=anchor_y, **self.get_batch('foreground'))