What blows me away about this example, is that #Textual is an async framework. Scratch the surface and there is async and await to the core.
But look at this code. It's a fully working Textual app, but can you see an await anywhere?
https://gist.github.com/willmcgugan/3ade56598beec8d8ce820ee216d68eaa
@willmcgugan I get "ImportError: Package 'textual.widgets' has no class 'Switch'"
@willmcgugan 0.10.1
@willmcgugan Thanks. It works now. Things are changing quickly. I only installed it a couple of days ago :)
@szescstopni Latest version is 0.13.0
You can update it with:
pip install textual -U
Or if you have cloning it from the repo:
poetry install --extras dev