16 lines
333 B
Python
16 lines
333 B
Python
from textual.app import App
|
|
from textual.widgets import Label
|
|
|
|
|
|
class VisibilityApp(App):
|
|
CSS_PATH = "visibility.tcss"
|
|
|
|
def compose(self):
|
|
yield Label("Widget 1")
|
|
yield Label("Widget 2", classes="invisible")
|
|
yield Label("Widget 3")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = VisibilityApp()
|
|
app.run()
|