``LabelField`` adds a text label to the display.
| 33 | |
| 34 | |
| 35 | class LabelField: |
| 36 | """ |
| 37 | ``LabelField`` adds a text label to the display. |
| 38 | """ |
| 39 | def __init__(self, text: str): |
| 40 | self._text = text |
| 41 | |
| 42 | def _fill_core_struct(self, value): |
| 43 | value.type = FormInputFieldType.LabelFormField |
| 44 | value.hasDefault = False |
| 45 | value.prompt = self._text |
| 46 | |
| 47 | def _fill_core_result(self, value): |
| 48 | pass |
| 49 | |
| 50 | def _get_result(self, value): |
| 51 | pass |
| 52 | |
| 53 | @property |
| 54 | def text(self) -> str: |
| 55 | return self._text |
| 56 | |
| 57 | @text.setter |
| 58 | def text(self, value: str) -> None: |
| 59 | self._text = value |
| 60 | |
| 61 | |
| 62 | class SeparatorField: |
no outgoing calls
no test coverage detected