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

@@ -1,5 +1,7 @@
test:
pytest --cov-report term-missing --cov=textual tests/ -vv
unit-test:
pytest --cov-report term-missing --cov=textual tests/ -vv -m "not integration_test"
typecheck:
mypy src/textual
format: