This commit is contained in:
Will McGugan
2022-10-04 10:15:09 +01:00
parent 14e87b6c99
commit fdc549a66c

View File

@@ -37,9 +37,9 @@ def test_widget_content_width():
class TextWidget(Widget):
def __init__(self, text: str, id: str) -> None:
self.text = text
super().__init__(id=id)
self.expand = True
self.expand = False
self.shrink = True
def render(self) -> str:
return self.text