mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
docstring
This commit is contained in:
@@ -115,6 +115,11 @@ class Widget(MessagePump):
|
||||
watch(self, attribute_name, callback)
|
||||
|
||||
def render_styled(self) -> RenderableType:
|
||||
"""Applies style attributes to the default renderable.
|
||||
|
||||
Returns:
|
||||
RenderableType: A new renderable.
|
||||
"""
|
||||
renderable = self.render()
|
||||
if self.style_padding is not None:
|
||||
renderable = Padding(renderable, self.style_padding)
|
||||
|
||||
Reference in New Issue
Block a user