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?

#Python

gist.github.com/willmcgugan/3a

@willmcgugan I get "ImportError: Package 'textual.widgets' has no class 'Switch'"

@szescstopni What happens if you do the following?

from textual import __version__
print(__version__)

@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

@willmcgugan Thanks. It works now. Things are changing quickly. I only installed it a couple of days ago :)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.