From fea9f5375e4c85dc2a4746fc59736d7e0aabdae5 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 8 Nov 2022 17:56:11 +0000 Subject: [PATCH] update to post --- docs/blog/posts/release0-4-0.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/blog/posts/release0-4-0.md b/docs/blog/posts/release0-4-0.md index fb55cc493..d3a0be7dd 100644 --- a/docs/blog/posts/release0-4-0.md +++ b/docs/blog/posts/release0-4-0.md @@ -13,7 +13,7 @@ We've released version 0.4.0 of [Textual](https://pypi.org/search/?q=textual). As this is the first post tagged with `release` let me first explain where the blog fits in with releases. We plan on doing a post for every note-worthy release. Which likely means all but the most trivial updates (typos just aren't that interesting). Blog posts will be supplementary to release notes which you will find on the [Textual repository](https://github.com/Textualize/textual). -Blog posts will give a little more background for the highlights in a release, and a rationale for changes and new additions. We embrace *building in public*, which means that we would like you to be as up-to-date with new developments as if you were sitting in our office. It's a small office, and you might not be a fan of the Scottish weather (it's [dreich](https://www.bbc.co.uk/news/uk-scotland-50476008)), but you can be here virtually. +Blog posts will give a little more background for the highlights in a release, and a rationale for changes and new additions. We embrace *building in public*, which means that we would like you to be as up-to-date with new developments as if you were sitting in our office. It's a small office, and you might not be a fan of the Scottish weather (it's [dreich](https://www.bbc.co.uk/news/uk-scotland-50476008)), but you can at least be here virtually. @@ -33,6 +33,7 @@ self.mount(Button(id="Buy Coffee"), before=0) # Mount after a selector self.mount(Static("Password is incorrect"), after="Dialog Input.-error") +# Mount after a specific widget tweet = self.query_one("Tweet") self.mount(Static("Consider switching to Mastodon"), after=tweet) @@ -44,7 +45,7 @@ Textual needs much of the same kind of operations as the [JS API](https://develo Textual now writes to stdout in a thread. The upshot of this is that Textual can work on the next update before the terminal has displayed the previous frame. -This means smoother updates all round! You may notice this when scrolling and animating, but even if you don't you will have more CPU cycles to play with. +This means smoother updates all round! You may notice this when scrolling and animating, but even if you don't, you will have more CPU cycles to play with in your Textual app.
--8<-- "docs/blog/images/faster-updates.excalidraw.svg" @@ -55,4 +56,4 @@ This means smoother updates all round! You may notice this when scrolling and an Up to version 0.3.0, Textual would only read a single CSS file set in the `CSS_PATH` class variable. You can now supply a list of paths if you have more than one CSS file. -This change was prompted by [tuilwindcss](https://github.com/koaning/tuilwindcss/) which brings a TailwindCSS like approach to building Textual Widgets. Also checkout [calmcode.io](https://calmcode.io/) by the same author, which is an amazing resource. +This change was prompted by [tuilwindcss](https://github.com/koaning/tuilwindcss/) which brings a TailwindCSS like approach to building Textual Widgets. Also check out [calmcode.io](https://calmcode.io/) by the same author, which is an amazing resource.