Commit Graph

325 Commits

Author SHA1 Message Date
Darren Burns
56a3d83a9a Add tests for on_complete Animation callbacks 2022-08-16 14:02:13 +01:00
Will McGugan
4ac4f3cee6 added results method 2022-08-13 12:25:35 +01:00
Will McGugan
f00e2d22d4 header fixes, and lazy queries 2022-08-13 09:12:59 +01:00
Will McGugan
c4f9659c29 imports 2022-08-07 14:14:01 +01:00
Will McGugan
5d7a821e1f test for center layout 2022-08-07 11:27:33 +01:00
darrenburns
a166d84eef 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
2022-08-05 13:47:47 +01:00
Will McGugan
fa4b971bff more docs 2022-08-04 15:27:41 +01:00
Will McGugan
7dc8daba85 Merge branch 'layer-dock' into docs 2022-07-31 16:33:40 +01:00
Will McGugan
7040d00c7b more docs 2022-07-30 17:01:51 +01:00
Will McGugan
52199ab134 add tests for arrange 2022-07-29 17:10:43 +01:00
Will McGugan
b514e9544b test fix 2022-07-29 10:28:50 +01:00
Will McGugan
38f4dcf8be tests fixes 2022-07-27 16:24:31 +01:00
Will McGugan
1abe8f933d test fixes, tests for partition 2022-07-27 15:37:33 +01:00
Will McGugan
4f69516d8d fix basic 2022-07-27 15:18:19 +01:00
Will McGugan
a43cb126f5 test fix 2022-07-20 19:08:10 +01:00
Will McGugan
e0a59d0e9a fix test 2022-07-20 16:23:11 +01:00
Will McGugan
49764a3ec7 improved color harmony 2022-07-19 21:41:34 +01:00
Will McGugan
def1f5d6ab divide optimizations 2022-07-11 12:45:54 +01:00
Will McGugan
5e428acb7d test fix 2022-07-10 14:04:47 +01:00
Will McGugan
7d569d62e0 box fix 2022-07-10 13:37:16 +01:00
Will McGugan
d514193ea9 test fixes 2022-07-09 17:21:27 +01:00
Will McGugan
d751048350 Merge pull request #602 from Textualize/render-cache
Render cache
2022-07-05 13:27:22 +01:00
Will McGugan
0ba3ffb171 size properties 2022-07-04 21:15:24 +01:00
Will McGugan
415db09a4b docstrings 2022-07-04 20:53:53 +01:00
Will McGugan
2ac95c5922 render lines and scrollbars 2022-07-04 20:37:59 +01:00
Will McGugan
f3a7c9483f apply style to widget 2022-07-04 14:48:28 +01:00
Will McGugan
81481a0e16 Added tint and opacity 2022-06-30 21:41:37 +01:00
Will McGugan
b2f0dbb8a2 added line_trim 2022-06-29 20:42:55 +01:00
Will McGugan
62f2ffee52 Merge pull request #595 from Textualize/user-css-over-widget-css
User CSS should always take precedence over Widget CSS
2022-06-29 14:03:14 +01:00
Darren Burns
908e2e940a Feedback from code review 2022-06-29 13:30:21 +01:00
Darren Burns
8617cbdc70 Update test over user css over widget css to show important widget css can be overridden by users too 2022-06-28 18:39:39 +01:00
Darren Burns
972aeece64 Add Specificity5 for user defined CSS 2022-06-28 17:26:18 +01:00
Will McGugan
32c34d1e54 Merge pull request #591 from Textualize/table-caret
Add a cursor to table
2022-06-28 13:59:46 +01:00
Darren Burns
aef7270863 Merge branch 'css' of github.com:Textualize/textual into user-css-over-widget-css 2022-06-28 13:53:08 +01:00
Darren Burns
7ebac6b860 Add wip test for user over widget css, use type alias 2022-06-28 13:52:58 +01:00
Will McGugan
86fdc96ab3 geometry tests 2022-06-27 10:11:57 +01:00
Will McGugan
03bfe10e69 inter-widget updates 2022-06-24 16:00:12 +01:00
Olivier Philippon
eb6370b167 [tests] Restore layout integration tests
These were broken-and-disabled in a previous PR because of 2 things:
 - The Widgets' default vertical scrollbar size is now 2: this has to be reflected in these tests, in order to benefit from their "regressions spotting" role
 - As long as textual#581 ("Default versus User CSS") is not solved, the Widget's default CSS overrides the custom Widgets' own CSS.
   The test now temporarily uses a more specific CSS selector in order to bypass this.
2022-06-24 11:58:44 +01:00
Will McGugan
e85438c9e6 renamed Region.origin to offset 2022-06-22 11:47:58 +01:00
Will McGugan
4f6a71bc33 annotations 2022-06-21 14:11:18 +01:00
Will McGugan
ad0507cb27 added some more tests 2022-06-21 14:07:27 +01:00
Will McGugan
2999626973 Merge branch 'css' into scroll-view 2022-06-21 10:33:29 +01:00
Will McGugan
50bc566c5d Merge pull request #582 from Textualize/specificity-clash-order-fix
Tests around CSS specificity, and fix ordering in case of specificity clash
2022-06-21 10:28:10 +01:00
Will McGugan
f4c12704fe fix tests 2022-06-17 16:03:05 +01:00
Darren Burns
7c33bf9937 Add tests for XTermParser chunking 2022-06-17 15:35:20 +01:00
Darren Burns
05845d6168 Ensure we read buffer correctly in XTermParser 2022-06-17 15:35:20 +01:00
Darren Burns
42489d3b1d Translate "escape" to "^" when XTermParser has to backtrack 2022-06-17 15:35:20 +01:00
Darren Burns
60262d2617 Formatting, tidying up, add extra mouse event parsing test 2022-06-17 15:35:20 +01:00
Darren Burns
129d5a57ea Add test around non-escape code input mapping to keys 2022-06-17 15:35:20 +01:00
Darren Burns
15284556ae Add various additional tests around XTermParser 2022-06-17 15:35:20 +01:00