Skip to content

Commit

Permalink
Deployed a396389 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Mar 18, 2024
1 parent e5baaf9 commit fadc3c6
Show file tree
Hide file tree
Showing 287 changed files with 25,165 additions and 23,338 deletions.
139 changes: 68 additions & 71 deletions 404.html

Large diffs are not rendered by default.

139 changes: 68 additions & 71 deletions FAQ/index.html

Large diffs are not rendered by default.

426 changes: 351 additions & 75 deletions api/app/index.html

Large diffs are not rendered by default.

152 changes: 76 additions & 76 deletions api/await_complete/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/await_remove/index.html

Large diffs are not rendered by default.

146 changes: 73 additions & 73 deletions api/binding/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/cache/index.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions api/color/index.html

Large diffs are not rendered by default.

154 changes: 76 additions & 78 deletions api/command/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/constants/index.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions api/containers/index.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions api/content_switcher/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/coordinate/index.html

Large diffs are not rendered by default.

224 changes: 154 additions & 70 deletions api/dom_node/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/errors/index.html

Large diffs are not rendered by default.

144 changes: 73 additions & 71 deletions api/events/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/filter/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/fuzzy_matcher/index.html

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions api/geometry/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/lazy/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/logger/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/logging/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/map_geometry/index.html

Large diffs are not rendered by default.

228 changes: 159 additions & 69 deletions api/message/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/message_pump/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/on/index.html

Large diffs are not rendered by default.

214 changes: 145 additions & 69 deletions api/pilot/index.html

Large diffs are not rendered by default.

153 changes: 83 additions & 70 deletions api/query/index.html

Large diffs are not rendered by default.

159 changes: 86 additions & 73 deletions api/reactive/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/renderables/index.html

Large diffs are not rendered by default.

303 changes: 230 additions & 73 deletions api/screen/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/scroll_view/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/scrollbar/index.html

Large diffs are not rendered by default.

139 changes: 68 additions & 71 deletions api/signal/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/strip/index.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions api/suggester/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/system_commands_source/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/timer/index.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions api/types/index.html

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions api/validation/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/walk/index.html

Large diffs are not rendered by default.

335 changes: 245 additions & 90 deletions api/widget/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/work/index.html

Large diffs are not rendered by default.

148 changes: 74 additions & 74 deletions api/worker/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions api/worker_manager/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/stylesheets/main.50c56a3b.min.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/stylesheets/main.50c56a3b.min.css.map

This file was deleted.

1 change: 1 addition & 0 deletions assets/stylesheets/main.7e359304.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/stylesheets/main.7e359304.min.css.map

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/11/06/new-blog/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/11/08/version-040/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/11/20/stealing-open-source-code-from-textual/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/11/22/what-i-learned-from-my-first-non-trivial-pr/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/11/24/spinners-and-progress-bars-in-textual/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/12/08/be-the-keymaster/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/12/11/version-060/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2022/12/20/a-year-of-building-for-the-terminal/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/02/11/the-heisenbug-lurking-in-your-async-code/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/03/08/overhead-of-python-asyncio-tasks/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/03/09/textual-0140-shakes-up-posting-messages/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/03/13/textual-0150-adds-a-tabs-widget/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/03/15/no-async-async-with-python/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/05/03/textual-0230-improves-message-handling/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/05/08/textual-0240-adds-a-select-control/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/06/06/to-tui-or-not-to-tui/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/07/03/textual-0290-refactors-dev-tools/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/07/29/pull-requests-are-cake-or-puppies/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/09/06/what-is-textual-web/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/09/15/textual-0370-adds-a-command-palette/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/09/21/textual-0380-adds-a-syntax-aware-textarea/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2023/10/04/announcing-textual-plotext/index.html

Large diffs are not rendered by default.

144 changes: 75 additions & 69 deletions blog/2024/02/11/file-magic-with-the-python-standard-library/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions blog/2024/02/20/remote-memory-profiling-with-memray/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/archive/2022/index.html

Large diffs are not rendered by default.

150 changes: 76 additions & 74 deletions blog/archive/2022/page/2/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/archive/2023/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/archive/2023/page/2/index.html

Large diffs are not rendered by default.

186 changes: 97 additions & 89 deletions blog/archive/2023/page/3/index.html

Large diffs are not rendered by default.

162 changes: 83 additions & 79 deletions blog/archive/2024/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/category/devlog/index.html

Large diffs are not rendered by default.

246 changes: 132 additions & 114 deletions blog/category/devlog/page/2/index.html

Large diffs are not rendered by default.

162 changes: 83 additions & 79 deletions blog/category/news/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/category/release/index.html

Large diffs are not rendered by default.

210 changes: 111 additions & 99 deletions blog/category/release/page/2/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/page/2/index.html

Large diffs are not rendered by default.

258 changes: 139 additions & 119 deletions blog/page/3/index.html

Large diffs are not rendered by default.

222 changes: 118 additions & 104 deletions blog/page/4/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/border/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/color/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/horizontal/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/integer/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/keyline/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/name/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/number/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/overflow/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/percentage/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/scalar/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/text_align/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/text_style/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css_types/vertical/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/blur/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/click/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/descendant_blur/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/descendant_focus/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/enter/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/focus/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/hide/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/key/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/leave/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/load/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mount/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_capture/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_down/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_move/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_release/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_scroll_down/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_scroll_up/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/mouse_up/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/paste/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/resize/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/screen_resume/index.html

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions events/screen_suspend/index.html

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions events/show/index.html

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions examples/guide/animator/animation01_static.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from textual._easing import DEFAULT_EASING, EASING
from textual.app import App, ComposeResult
from textual.widgets import Static

ease = EASING[DEFAULT_EASING]


class AnimationApp(App):
def compose(self) -> ComposeResult:
Expand All @@ -10,6 +13,15 @@ def compose(self) -> ComposeResult:
self.box.styles.padding = (1, 2)
yield self.box

def key_1(self):
self.box.styles.opacity = 1 - ease(0.25)

def key_2(self):
self.box.styles.opacity = 1 - ease(0.5)

def key_3(self):
self.box.styles.opacity = 1 - ease(0.75)


if __name__ == "__main__":
app = AnimationApp()
Expand Down
32 changes: 32 additions & 0 deletions examples/guide/reactivity/recompose01.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from datetime import datetime

from textual.app import App, ComposeResult
from textual.reactive import reactive
from textual.widgets import Digits


class Clock(App):

CSS = """
Screen {align: center middle}
Digits {width: auto}
"""

time: reactive[datetime] = reactive(datetime.now, init=False)

def compose(self) -> ComposeResult:
yield Digits(f"{self.time:%X}")

def watch_time(self) -> None: # (1)!
self.query_one(Digits).update(f"{self.time:%X}")

def update_time(self) -> None:
self.time = datetime.now()

def on_mount(self) -> None:
self.set_interval(1, self.update_time) # (2)!


if __name__ == "__main__":
app = Clock()
app.run()
29 changes: 29 additions & 0 deletions examples/guide/reactivity/recompose02.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from datetime import datetime

from textual.app import App, ComposeResult
from textual.reactive import reactive
from textual.widgets import Digits


class Clock(App):

CSS = """
Screen {align: center middle}
Digits {width: auto}
"""

time: reactive[datetime] = reactive(datetime.now, recompose=True)

def compose(self) -> ComposeResult:
yield Digits(f"{self.time:%X}")

def update_time(self) -> None:
self.time = datetime.now()

def on_mount(self) -> None:
self.set_interval(1, self.update_time)


if __name__ == "__main__":
app = Clock()
app.run()
29 changes: 29 additions & 0 deletions examples/guide/reactivity/refresh03.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from textual.app import App, ComposeResult
from textual.reactive import reactive
from textual.widget import Widget
from textual.widgets import Input, Label


class Name(Widget):
"""Generates a greeting."""

who = reactive("name", recompose=True) # (1)!

def compose(self) -> ComposeResult: # (2)!
yield Label(f"Hello, {self.who}!")


class WatchApp(App):
CSS_PATH = "refresh02.tcss"

def compose(self) -> ComposeResult:
yield Input(placeholder="Enter your name")
yield Name()

def on_input_changed(self, event: Input.Changed) -> None:
self.query_one(Name).who = event.value


if __name__ == "__main__":
app = WatchApp()
app.run()
10 changes: 10 additions & 0 deletions examples/guide/reactivity/refresh03.tcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Input {
dock: top;
margin-top: 1;
}

Name {
width: auto;
height: auto;
border: heavy $secondary;
}
4 changes: 2 additions & 2 deletions examples/how-to/render_compose.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from time import time

from textual.app import App, ComposeResult, RenderableType
from textual.app import App, ComposeResult, RenderResult
from textual.containers import Container
from textual.renderables.gradient import LinearGradient
from textual.widgets import Static
Expand Down Expand Up @@ -41,7 +41,7 @@ def on_mount(self) -> None:
def compose(self) -> ComposeResult:
yield Static("Making a splash with Textual!") # (2)!

def render(self) -> RenderableType:
def render(self) -> RenderResult:
return LinearGradient(time() * 90, STOPS) # (3)!


Expand Down
Loading

0 comments on commit fadc3c6

Please sign in to comment.