Commit Graph

2473 Commits

Author SHA1 Message Date
Dave Pearson
9527248bc0 Remove 's' from 'strings' 2022-10-15 10:07:23 +01:00
Dave Pearson
b6e27ac6f7 Clean trailing whitespace 2022-10-15 10:02:34 +01:00
Dave Pearson
b56a78ab46 Merge pull request #914 from davep/css-docs-review-events
CSS docs review - Events and Messages
2022-10-14 19:00:55 +01:00
Dave Pearson
cb14d7c70d Merge pull request #913 from davep/css-docs-review-layout
CSS docs review - Layout
2022-10-14 18:54:28 +01:00
Dave Pearson
f5cb4cc65f Merge pull request #911 from davep/input-password-arg
Add password as a Input keyword argument - see https://github.com/Textualize/textual/discussions/905 for some context
2022-10-14 18:48:11 +01:00
Dave Pearson
acc5e72775 Add 'a' 2022-10-14 18:46:43 +01:00
Dave Pearson
72c99e69fb it's -> its 2022-10-14 18:35:18 +01:00
Dave Pearson
8c5749898f Clean up trailing whitespace 2022-10-14 18:16:30 +01:00
Dave Pearson
1354270e6c Make the final paragraph flow a wee bit better 2022-10-14 14:42:17 +01:00
Dave Pearson
7bad3c37ce place -> placed 2022-10-14 14:38:29 +01:00
Will McGugan
ef7ecc0028 Merge pull request #902 from Textualize/depth-first
depth first search
2022-10-14 09:43:32 +01:00
Dave Pearson
26dc103f6d Add password as a Input keyword argument
Via https://github.com/Textualize/textual/discussions/905 -- I feel it's
reasonable to expect the password reactive to be set via a keyword argument
of the same name -- many folk will likely come at this expecting some
similarity to how similar elements work on the web.
2022-10-14 09:27:48 +01:00
Will McGugan
14316fdbca comment 2022-10-13 21:41:22 +01:00
Will McGugan
9392fbfae4 imports 2022-10-13 21:04:10 +01:00
Will McGugan
de4ca1509e typing improvements 2022-10-13 21:01:04 +01:00
Will McGugan
7eb5119fe0 real breadth first, and tests 2022-10-13 20:51:03 +01:00
Will McGugan
5a8e492294 depth first search 2022-10-13 16:43:59 +01:00
Will McGugan
88447b78f6 Merge pull request #896 from Textualize/remove-unused-code
Remove unused code
2022-10-13 15:01:31 +01:00
darrenburns
a398aebb0a Fix textual run path bug on Windows (#899) 2022-10-13 13:56:46 +01:00
Darren Burns
e090931d21 Remove E2E smoke test from workflow 2022-10-13 12:55:50 +01:00
Darren Burns
7f24a6dfa5 Remove E2E tests (snapshot covers same functionality), move custom theme into docs folder 2022-10-13 12:44:20 +01:00
darrenburns
24fb57702c Fix _reset_focus being called on app instead of Screen (#895) 2022-10-13 12:30:58 +01:00
Darren Burns
14ea50d4c1 Remove some unused exceptions 2022-10-13 12:19:07 +01:00
Darren Burns
6b10895eac Removing some more unused code 2022-10-13 11:37:39 +01:00
Darren Burns
7bce50476c Merge branch 'css' of github.com:Textualize/textual into remove-unused-code 2022-10-13 11:26:48 +01:00
Darren Burns
b2e7f96c1c Remove unused types 2022-10-13 11:20:55 +01:00
Darren Burns
1b0c94e8a0 Remove draw.py, fix imports 2022-10-13 11:15:15 +01:00
Dave Pearson
bf1ad06edb Merge pull request #888 from davep/css-docs-screen-import
Modify the screen examples to import Screen from textual.screen
2022-10-13 11:12:07 +01:00
Dave Pearson
7360e226c1 Correct the highlighted lines
I'd not realised that
78ea2cd9f8
would have a visible knock-on effect in the docs, because the docs specify
which lines should be highlighted. As per this comment
https://github.com/Textualize/textual/pull/888#issuecomment-1277298383 this
corrects that.
2022-10-13 11:03:53 +01:00
Dave Pearson
f127506e60 Remove some trailing whitespace 2022-10-13 11:03:17 +01:00
Will McGugan
bb18db5612 Merge pull request #893 from Textualize/input-fix
Use screen offset instead of offset
2022-10-13 10:50:00 +01:00
darrenburns
36ac94734f Move focus logic to screen, add more key replacements, collapse bindings in footer (#880)
* Move focusing logic to the Screen level

* Update tests to support per-screen focus management

* Some additional key name replacements

* Improve rendering of bindings in footer when multiple items have same action

* Clean up footer, allow key_displays csv

* Prevent exception when widget is not in screen
2022-10-13 10:43:16 +01:00
darrenburns
a16db13157 Fix :focus-within pseudo-selector (#885)
* Fix :focus-within pseudo-selector

* Remove debug prints
2022-10-13 10:42:46 +01:00
Darren Burns
a0fe9e2087 Use screen offset instead of offset 2022-10-13 10:35:11 +01:00
Will McGugan
43e5ac7d0f Merge pull request #887 from aaronst/css
docs: typos
2022-10-13 10:23:15 +01:00
Will McGugan
2d04a3aedd Merge pull request #889 from Textualize/focus-border
update borders with css
2022-10-13 10:22:26 +01:00
Will McGugan
fb60dc89c2 update borders with css 2022-10-13 09:45:13 +01:00
Dave Pearson
78ea2cd9f8 Modify the screen examples to import Screen from textual.screen
The surrounding text in the documentation states that Screen is imported
from textual.screen, but the code was importing the class from textual.app.
Further, I was getting warnings from pyright that I was using a class that
wasn't exported from the module I was importing from.
2022-10-13 09:10:40 +01:00
Aaron Stephens
b9493ae6ff docs: typos 2022-10-12 17:34:29 -07:00
Will McGugan
467700c759 Merge pull request #876 from davep/css-CSS_PATH-type-update
Harmonise the types of the App's css path declarations
2022-10-12 15:36:25 +01:00
Will McGugan
ee0a4f6bf1 Merge pull request #881 from Textualize/win-slow
Win slow
2022-10-12 15:34:06 +01:00
Will McGugan
010ccbcd6d Merge pull request #868 from Textualize/document-links
Document links
2022-10-12 15:31:35 +01:00
Will McGugan
b42b241b23 Merge pull request #883 from davep/css-query-specific-type
Provide extra hinting for App.query
2022-10-12 15:27:23 +01:00
Will McGugan
1bdea56bde Merge pull request #879 from lllama/patch-4
Update docs: fix copy/paste error for Timers
2022-10-12 14:52:41 +01:00
Dave Pearson
ea0c9bb464 Reformat to black standard 2022-10-12 14:40:49 +01:00
Dave Pearson
eef9c8157d Provide extra hinting for App.query
This change seeks to help silence some warnings that were appearing with
pylance/pyright when type checking was in strict mode. See #867.
2022-10-12 14:36:19 +01:00
Will McGugan
e7e6b56ea3 faster than inspect 2022-10-12 14:34:46 +01:00
Will McGugan
bc86cdd303 test fix 2022-10-12 14:19:44 +01:00
Will McGugan
091693b6c0 simplify log 2022-10-12 14:00:10 +01:00
Will McGugan
b593e6638c simplify 2022-10-12 13:45:30 +01:00