Galmo13
affcb60d9b
Fixed a typo
...
Fixed a "buy" by a "by".
2023-01-16 16:07:58 +01:00
Will McGugan
45abae5888
Merge pull request #1546 from Textualize/fix-1399
...
Make `COMPONENT_CLASSES` inheritable and add classvar to prevent inheritance.
2023-01-15 02:43:48 -08:00
Will McGugan
974a0b8020
Merge branch 'main' into fix-1399
2023-01-15 02:43:41 -08:00
Will McGugan
2468a8ca83
Merge pull request #1555 from Textualize/rodrigogiraoserrao-patch-1
...
Fix tests: await all mounts before checking rendered values
2023-01-15 02:30:41 -08:00
Will McGugan
7dcfcadeeb
Merge pull request #1561 from davep/tweak-query-one-docs
...
Tweak `query_one` and related methods docstrings
2023-01-15 02:30:29 -08:00
Will McGugan
831ef70610
Merge pull request #1558 from Textualize/reactive-work
...
Reactive refactor and fixes
2023-01-15 02:15:15 -08:00
Will McGugan
582aadb4b2
docstring [skip ci]
2023-01-15 10:10:52 +00:00
Will McGugan
6d57ba4623
docstring fix
2023-01-13 22:17:48 +00:00
Will McGugan
6063b0c9b2
remove comment [skip ci]
2023-01-13 21:17:19 +00:00
Will McGugan
6af2b61fc7
watching computed
2023-01-13 20:56:33 +00:00
Will McGugan
35cbd30fb7
fix superfluous scrollbars
2023-01-13 20:50:00 +00:00
Will McGugan
5f77cd189f
fix reactive computes
2023-01-13 18:18:12 +00:00
Will McGugan
90f570494d
docstring
2023-01-13 17:40:42 +00:00
Will McGugan
fb5dccf739
fix return
2023-01-13 17:37:02 +00:00
Will McGugan
40434e7ef1
co_compute to compute
2023-01-13 17:36:41 +00:00
Dave Pearson
9a396ece29
Expand the docstring for DOMNode.query_one
...
See #1560 . In short: query_one was changed a couple of months back so that
it searched for only a single instance of a hit for the query, rather
than (as before) returning the first item that matched the query.
Unfortunately the docstring didn't get the necessary update.
This should hopefully make things a wee bit clearer in the docs.
2023-01-13 17:33:23 +00:00
Dave Pearson
f7c671f710
Update DOMQuery.only_one to include NoMatches in raises list
...
See #1560
2023-01-13 17:25:32 +00:00
Will McGugan
c3129c8331
fix inheritance
2023-01-13 17:22:52 +00:00
Rodrigo Girão Serrão
7e428e2f4c
fix tests: await all mounts.
2023-01-13 10:58:57 +00:00
Will McGugan
8f0f0d8c12
refactor
2023-01-13 10:44:13 +00:00
Will McGugan
027635b978
merge
2023-01-12 17:45:36 +00:00
Rodrigo Girão Serrão
feb8591e72
Fix test: await widget mount before focusing
...
Follow-up to #1548
2023-01-12 16:11:36 +00:00
Rodrigo Girão Serrão
510df0c375
Merge branch 'main' into fix-1399
2023-01-12 15:50:06 +00:00
Rodrigo Girão Serrão
a3e54323d9
Make methods private.
2023-01-12 15:48:49 +00:00
Rodrigo Girão Serrão
ab0d9d569e
Merge pull request #1548 from Textualize/fix-1477
...
Improve `Input` view position calculation
2023-01-12 15:13:03 +00:00
Rodrigo Girão Serrão
b9d9e148d8
Merge pull request #1553 from Textualize/rodrigogiraoserrao-patch-1
...
Make list_view snapshot test pass more reliably
2023-01-12 15:07:20 +00:00
Rodrigo Girão Serrão
dd478dd249
Make list_view snapshot test pass more reliably
2023-01-12 15:00:56 +00:00
Rodrigo Girão Serrão
dff226efa2
Update docstring.
2023-01-12 14:49:16 +00:00
Rodrigo Girão Serrão
0762a6b858
Merge pull request #1552 from Textualize/fix-1459
...
Match clock color to header color.
2023-01-12 12:13:58 +00:00
Rodrigo Girão Serrão
922c2273b1
Match clock color to header.
2023-01-12 12:03:16 +00:00
Dave Pearson
b6bf7595b8
Merge pull request #1549 from davep/cli-diagnose-tweak
...
Textual diagnose command code tweaks
2023-01-12 10:38:15 +00:00
Rodrigo Girão Serrão
461af6b7c3
Merge pull request #1544 from Textualize/fix-placeholder-docs
...
Fix doc issue.
2023-01-12 10:24:57 +00:00
Dave Pearson
2c4a889d71
Tidy up the output of the console dimensions
2023-01-12 09:33:46 +00:00
Dave Pearson
dad930d390
Add a missing return value to a docstring
2023-01-12 09:27:14 +00:00
Rodrigo Girão Serrão
6a495005b6
Changelog.
2023-01-11 19:21:31 +00:00
Rodrigo Girão Serrão
0bc10f0ec4
Add regression tests.
2023-01-11 19:15:10 +00:00
Rodrigo Girão Serrão
5035c29b87
Add early return in view_position calculation.
...
When an input is instantiated without an argument for the parameter 'value', the first time the watchers associated with its reactive attributes run, the attribute self.view_position is set to 1, which makes no sense because there isn't even any value in the input. Thus, when the value is later modified programmatically, e.g., because it is set with 'some_input_widget.value = some_value', the attribute self.view_position will still be 1 and the text will be rendered starting from the first character.
As two example situations of this, consider #1477 and #1443 .
2023-01-11 18:52:00 +00:00
Rodrigo Girão Serrão
d966665345
Address review comments.
2023-01-11 16:05:44 +00:00
Rodrigo Girão Serrão
69c327b20d
Format.
2023-01-11 15:41:10 +00:00
Rodrigo Girão Serrão
6999d1a023
Merge branch 'main' into fix-1399
2023-01-11 15:18:41 +00:00
Rodrigo Girão Serrão
d7782a6878
Update changelog.
2023-01-11 15:15:17 +00:00
Dave Pearson
328733edee
Merge pull request #1545 from davep/cli-diagnose
...
Add a textual diagnose CLI command
2023-01-11 15:13:47 +00:00
Rodrigo Girão Serrão
b4121acb45
Enable component class inheritance.
2023-01-11 15:12:55 +00:00
Rodrigo Girão Serrão
c4aac3e5ad
Add mechanism to get inherited component classes.
2023-01-11 15:12:32 +00:00
Rodrigo Girão Serrão
f5d8de4194
Add test for COMPONENT_CLASSES inheritance.
2023-01-11 15:09:14 +00:00
Dave Pearson
05931c448d
Embrace the functional
2023-01-11 15:08:22 +00:00
Dave Pearson
4ba974e2b4
Fix a CHANGELOG typo
2023-01-11 15:06:37 +00:00
Dave Pearson
7f6cfdf6f1
DRY getting an environment variable representation
2023-01-11 14:41:57 +00:00
Dave Pearson
966bca3669
Pick up anything INSIDE_EMACS
...
This should, from what I can see, pick up being run inside any Emacs-based
shell/term.
2023-01-11 13:49:42 +00:00
Dave Pearson
be31341c5b
Add a textual diagnose CLI command
...
This, in this early version anyway, emits a simple dump of
GitHub-issue-friendly markdown text that lists all of the key information we
may want to know when someone using having a problem with Textual.
See #1542 .
2023-01-11 13:20:29 +00:00