Textual 0.16.0 adds TabbedContent and border titles
Textual 0.16.0 lands 9 days after the previous release. We have some new features to show you.
Textual 0.16.0 lands 9 days after the previous release. We have some new features to show you.
A (reasonable) criticism of async is that it tends to proliferate in your code. In order to await
something, your functions must be async
all the way up the call-stack. This tends to result in you making things async
just to support that one call that needs it or, worse, adding async
just-in-case. Given that going from def
to async def
is a breaking change there is a strong incentive to go straight there.
Before you know it, you have adopted a policy of "async all the things".
We've just pushed Textual 0.15.0, only 4 days after the previous version. That's a little faster than our typical release cadence of 1 to 2 weeks.
What's new in this release?
Textual version 0.14.0 has landed just a week after 0.13.0.
Note
We like fast releases for Textual. Fast releases means quicker feedback, which means better code.
What's new?
Every widget in Textual, be it a button, tree view, or a text input, runs an asyncio task. There is even a task for scrollbar corners (the little space formed when horizontal and vertical scrollbars meet).
It's been just 9 days since the previous release, but we have a few interesting enhancements to the Textual API to talk about.
We released Textual 0.10.0 25 days ago, which is a little longer than our usual release cycle. What have we been up to?
I'm taking a brief break from blogging about Textual to bring you this brief PSA for Python developers who work with async code. I wanted to expand a little on this tweet.
Quote
Patience, Highlander. You have done well. But it'll take time. You are generations being born and dying. You are at one with all living things. Each man's thoughts and dreams are yours to know. You have power beyond imagination. Use it well, my friend. Don't lose your head.
Juan Sánchez Villalobos Ramírez, Chief metallurgist to King Charles V of Spain
As of the time of writing, I'm a couple or so days off having been with Textualize for 3 months. It's been fun, and educational, and every bit as engaging as I'd hoped, and more. One thing I hadn't quite prepared for though, but which I really love, is how so many other people are learning Textual along with me.
I spent some time optimizing Textual on Windows recently, and discovered something which may be of interest to anyone working with async code on that platform.