Fix map invalidation (#2129)

* Invalidation logic

* comment and docstring

* changelog

* snapshot
This commit is contained in:
Will McGugan
2023-03-23 18:36:46 +00:00
committed by GitHub
parent 3fe04f7b2d
commit 11cf1f1d28
5 changed files with 199 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
from textual.app import App, ComposeResult
from textual.widgets import Label, TabbedContent, TabPane
class TabApp(App):
CSS = """
TabPane {
border: solid blue;
}
"""
def compose(self) -> ComposeResult:
with TabbedContent():
with TabPane("Tab 1", id="tab-1"):
yield Label("hello")
yield Label("hello")
yield Label("hello")
with TabPane("Tab 2", id="tab-2"):
yield Label("world")
if __name__ == "__main__":
app = TabApp()
app.run()