diff --git a/src/textual/dom.py b/src/textual/dom.py index 1dfb0a395..96316f41d 100644 --- a/src/textual/dom.py +++ b/src/textual/dom.py @@ -362,6 +362,7 @@ class DOMNode(MessagePump): @property def rich_style(self) -> Style: + """Get a Rich Style object for this Widget.""" (_, _), (background, color) = self.colors style = Style.from_color(color.rich_color, background.rich_color) style += self.text_style diff --git a/src/textual/drivers/linux_driver.py b/src/textual/drivers/linux_driver.py index 8cc82a31c..95a9dd1ed 100644 --- a/src/textual/drivers/linux_driver.py +++ b/src/textual/drivers/linux_driver.py @@ -87,7 +87,6 @@ class LinuxDriver(Driver): width, height = terminal_size textual_size = Size(width, height) event = events.Resize(self._target, textual_size, textual_size) - # self.console.size = terminal_size asyncio.run_coroutine_threadsafe( self._target.post_message(event), loop=loop,