Commit Graph

17 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
7a8d6920e8 Error when dismissing non-active screen.
Related issues: #2575.
2023-05-16 11:14:54 +01:00
Rodrigo Girão Serrão
3245eb38bb Make auto-focus a class var.
Related comments: https://github.com/Textualize/textual/pull/2527\#discussion_r1188776849
2023-05-09 16:44:37 +01:00
Rodrigo Girão Serrão
ed4d811451 Add tests for Screen auto focus.
Related issues: #2457.
2023-05-09 14:55:18 +01:00
Will McGugan
b5689b1f69 Worker API (#2182)
* worker class

* worker API tests

* tidy

* Decorator and more tests

* type fix

* error order

* more tests

* remove active message

* move worker manager to app

* cancel nodes

* typing fix

* revert change

* typing fixes and cleanup

* revert typing

* test fix

* cancel group

* Added test for worker

* comment

* workers docs

* Added exit_on_error

* changelog

* svg

* refactor test

* remove debug tweaks

* docstrings

* worker test

* fix typing in run

* fix 3.7 tests

* blog post

* fix deadlock test

* words

* words

* words

* workers docs

* blog post

* Apply suggestions from code review

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

* docstring

* fix and docstring

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update src/textual/widgets/_markdown.py

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update src/textual/worker.py

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Fix black

* docstring

* merge

* changelog

---------

Co-authored-by: Dave Pearson <davep@davep.org>
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-04-04 13:12:51 +01:00
Will McGugan
5a77e3493d add test 2023-02-24 10:13:58 +00:00
Will McGugan
4cdc139853 name fix 2023-02-13 15:12:02 +00:00
Will McGugan
6b5015b266 mass renaming 2023-02-13 15:09:40 +00:00
Will McGugan
204c048e2b children_view test 2023-02-13 13:39:09 +00:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
darrenburns
e32e094b92 Support callables in App.SCREENS (#1185)
* Support Type[Screen] in App.SCREENS (lazy screens)

* Update CHANGELOG

* Remove redundant isinstance
2022-11-16 15:47:48 +00:00
Will McGugan
ac3d756e51 unmount event 2022-10-27 17:43:02 +01:00
Darren Burns
1b0c94e8a0 Remove draw.py, fix imports 2022-10-13 11:15:15 +01:00
Will McGugan
d5b3b752c6 skip on py310 2022-08-17 10:12:37 +01:00
Will McGugan
11191b2109 fix segmentation fault 2022-08-17 10:06:25 +01:00
Will McGugan
4b596352d9 removed cruft 2022-08-17 09:33:46 +01:00
Will McGugan
40374984ed test 2022-08-17 09:20:31 +01:00
Will McGugan
78c6c89544 added tests for screens 2022-08-17 09:17:39 +01:00