Register callbacks at message pump level, invoke them after refresh (#607)

* Register callbacks at message pump level, invoke them after refresh

* Fix a typo

* Code review feedback actions

* call_later callbacks invoked after refresh or on idle

* Fix space key in text input

* Make Widget.on_idle synchronous

* Fix call_later

* Rename PostScreenUpdate to InvokeCallbacks, and only fire if callbacks exist

* Update type hints for InvokeLater callbacks

* Update type signature of call_later callbacks, extract typevar
This commit is contained in:
darrenburns
2022-08-05 13:47:47 +01:00
committed by GitHub
parent 589bf6a1bc
commit a166d84eef
10 changed files with 66 additions and 19 deletions

View File

@@ -4,7 +4,6 @@ from pathlib import Path
from typing import Iterable
from rich.console import RenderableType
from rich.style import Style
from rich.table import Table
from rich.text import Text