- @dataclass
- class StyleProperty:
- name: str
- attr: Union[str, Callable]
- fromString: Callable
- toString: Callable = None
- limits: Tuple[Any, Any] = (None, None)
- validators: Tuple[Optional[Callable], Optional[Callable]] = (None, None)
- def create_table(self):
- logger.debug("lstab create")
- self.properties = [
- self.StyleProperty('Name', 'name', str, None, (None, None), (self.validate_name, None)),
- self.StyleProperty('Parent', 'parent', str, None, (None, None), (None, None)),
- self.StyleProperty('Font', 'font', str, None, (None, None), (None, None)),
- self.StyleProperty('Font size', 'font_size', float, None, (0, None), (op.ge, None)),
- self.StyleProperty('Width', 'width', float, None, (None, None), (None, None)),
Bez tytułu
z Mustard Earthworm, 4 miesiące temu, napisane w Plain Text, wyświetlone 38 razy.
[paste_expire] 6 miesiące.
URL https://pastebin.k4be.pl/view/2a10a766
Udostępnij
Pobierz wklejkę lub Pokaż surowy tekst
— Rozwiń pełna szerokość przeglądarki