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
  1.     @dataclass
  2.     class StyleProperty:
  3.         name: str
  4.         attr: Union[str, Callable]
  5.         fromString: Callable
  6.         toString: Callable = None
  7.         limits: Tuple[Any, Any] = (None, None)
  8.         validators: Tuple[Optional[Callable], Optional[Callable]] = (None, None)
  9.  
  10.     def create_table(self):
  11.         logger.debug("lstab create")
  12.         self.properties = [
  13.             self.StyleProperty('Name', 'name', str, None, (None, None), (self.validate_name, None)),
  14.             self.StyleProperty('Parent', 'parent', str, None, (None, None), (None, None)),
  15.             self.StyleProperty('Font', 'font', str, None, (None, None), (None, None)),
  16.             self.StyleProperty('Font size', 'font_size', float, None, (0, None), (op.ge, None)),
  17.             self.StyleProperty('Width', 'width', float, None, (None, None), (None, None)),

odpowiedź "Bez tytułu"

Tutaj możesz odpowiedzieć na wklejkę z góry

captcha