Non editable text label widget. Set its content by means of set_text function, and retrieve its content with the function get_text.
| 2336 | |
| 2337 | |
| 2338 | class Label(Widget, _MixinTextualWidget): |
| 2339 | """ Non editable text label widget. Set its content by means of set_text function, and retrieve its content with the |
| 2340 | function get_text. |
| 2341 | """ |
| 2342 | |
| 2343 | def __init__(self, text='', *args, **kwargs): |
| 2344 | """ |
| 2345 | Args: |
| 2346 | text (str): The string content that have to be displayed in the Label. |
| 2347 | kwargs: See Container.__init__() |
| 2348 | """ |
| 2349 | super(Label, self).__init__(*args, **kwargs) |
| 2350 | self.type = 'p' |
| 2351 | self.set_text(text) |
| 2352 | |
| 2353 | |
| 2354 | class Progress(Widget): |