Commit Graph

2683 Commits

Author SHA1 Message Date
Dave Pearson
31a1ebbe8f s/you/your/ 2022-10-13 16:36:30 +01:00
Dave Pearson
7182c79814 Lets to let's 2022-10-13 15:46:17 +01:00
Dave Pearson
c4a43c3f52 s/Mypy/mypy/ 2022-10-13 15:44:46 +01:00
Dave Pearson
ffbccd5d5d Add code markup to the mention of class names 2022-10-13 15:42:01 +01:00
Dave Pearson
4569a77d54 Add code markup to the mention of a class name 2022-10-13 15:40:55 +01:00
Dave Pearson
da49d19cb7 s/fledge/fledged/ 2022-10-13 15:40:03 +01:00
Dave Pearson
e736611b55 Remove trailing whitespace 2022-10-13 15:34:10 +01:00
Dave Pearson
25fcf26a30 Add code markup to the mention of a class names 2022-10-13 15:31:34 +01:00
Dave Pearson
4a6e4ff025 Reword the details of how textual run finds an app
It seems the docs are lagging behind the code here, so this commit attempts
to update them so they're more in line with how `textual run` works.
2022-10-13 15:26:54 +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
Dave Pearson
ceb531e535 Add code markup to the mention of a class name 2022-10-13 14:46:39 +01:00
Dave Pearson
7676a6cf4c Trailing whitespace cleanup 2022-10-13 14:45:54 +01:00
Dave Pearson
bd43f0466a Harmonise the tutorial's markup of filenames
In some cases filenames where `marked-up.py`, in other cases they were
"marked-up.py", and in some cases they were just mentioned with
no-markup.py. This commit seeks to make all filename mentions, in text, the
same.
2022-10-13 14:41:10 +01:00
Dave Pearson
a342a2cb53 Add code markup to the mention of a class name 2022-10-13 14:37:03 +01:00
Dave Pearson
d6a2c88713 Add code markup to a number of code-oriented things in a line 2022-10-13 14:35:39 +01:00
Dave Pearson
45db071bb5 Add missing end quote to a string 2022-10-13 14:32:20 +01:00
Dave Pearson
1dbde34b40 Add code markup a string that is a class
Elsewhere a string that is a class is marked up this way, so let's follow
that earlier standard.
2022-10-13 14:31:32 +01:00
Dave Pearson
86b5612c9f Lower-case mention of stopwatches
This looks more like it's been used as a normal word, rather than as a
plural for the class.
2022-10-13 14:28:04 +01:00
Dave Pearson
be36c55d37 Add code markup to the mention of a class name 2022-10-13 14:26:44 +01:00
Dave Pearson
ed20f4a8e6 Add code markup a string that is a widget ID
Elsewhere in the docs we see `"something"` for a class, so I feel it follows
that "#something" should really be `"#something"` too.
2022-10-13 14:23:26 +01:00
Dave Pearson
e109599a97 Add code markup to the mention of a class name 2022-10-13 14:21:39 +01:00
Dave Pearson
758ddfa86f Add code markup to the mention of a method name 2022-10-13 14:20:41 +01:00
Dave Pearson
50fb723965 Add code markup to the mention of a class name 2022-10-13 14:19:50 +01:00
Dave Pearson
2e25c894e3 Add code markup to the mention of a class name 2022-10-13 14:18:23 +01:00
Dave Pearson
82499c31e7 Capital at the start of a sentence 2022-10-13 14:16:24 +01:00
Dave Pearson
93e403c8dc Mark mention of Widget as a class as code 2022-10-13 14:11:12 +01:00
darrenburns
a398aebb0a Fix textual run path bug on Windows (#899) 2022-10-13 13:56:46 +01:00
Dave Pearson
a90a2fd728 Correct the name of mypy
It seems that mypy's preference for its name is mypy (or even my[py]), but
not Mypy.
2022-10-13 13:45:34 +01:00
Dave Pearson
91a13406e6 Remove trailing whitespace
Including one instance that I wouldn't have, but the pre-commit hooks have,
and it seems fine.
2022-10-13 13:41:10 +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