blog post new release (#2712)

* blog post new release

* update words

* Update docs/blog/posts/release0-27-0.md

Co-authored-by: Dave Pearson <davep@davep.org>

---------

Co-authored-by: Dave Pearson <davep@davep.org>
This commit is contained in:
Will McGugan
2023-06-01 11:33:54 +01:00
committed by GitHub
parent 78db024c01
commit 58a9cb1909
15 changed files with 2057 additions and 346 deletions

View File

@@ -1,3 +1,5 @@
from math import sin
from textual.app import App, ComposeResult
from textual.widgets._sparkline import Sparkline
@@ -6,7 +8,7 @@ class SparklineColorsApp(App[None]):
CSS_PATH = "sparkline_colors.css"
def compose(self) -> ComposeResult:
nums = [10, 2, 30, 60, 45, 20, 7, 8, 9, 10, 50, 13, 10, 6, 5, 4, 3, 7, 20]
nums = [abs(sin(x / 3.14)) for x in range(0, 360 * 6, 20)]
yield Sparkline(nums, summary_function=max, id="fst")
yield Sparkline(nums, summary_function=max, id="snd")
yield Sparkline(nums, summary_function=max, id="trd")