Commit Graph

4154 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
f5d8de4194 Add test for COMPONENT_CLASSES inheritance. 2023-01-11 15:09:14 +00:00
Rodrigo Girão Serrão
81d3201b1d Add switch to control component class inheritance. 2023-01-11 12:30:58 +00:00
Will McGugan
1c4fe0c4fb added text re navigation 2023-01-10 18:18:59 +00:00
Will McGugan
e4cef274b1 tweak 2023-01-10 18:18:59 +00:00
Will McGugan
c03f05df05 Merge pull request #1501 from nitzan-shaked/tree-cursor-horiz-scroll
Fix "tree scrolls back to left"
2023-01-10 08:17:53 -08:00
Will McGugan
809e7c9d08 Merge pull request #1537 from Textualize/fix-docs-api
Minor doc fixes.
2023-01-10 08:15:44 -08:00
Will McGugan
1c21127c8f Merge pull request #1538 from nitzan-shaked/scrollbar-renderer
Pluggable ScrollBarRender
2023-01-10 08:14:09 -08:00
Will McGugan
402afa5c17 Merge pull request #1535 from davep/get-treenode-by-id
Add `Tree.get_node_by_id`
2023-01-10 08:12:49 -08:00
Will McGugan
43915b9415 update to introduction 2023-01-10 16:07:33 +00:00
Nitzan Shaked
cb9a67cf05 added docstring to _get_label_region 2023-01-10 17:56:28 +02:00
Nitzan Shaked
b09511b6e6 Fix PR comments 2023-01-10 17:32:38 +02:00
Dave Pearson
d0ea967aa4 Merge branch 'get-treenode-by-id' of github.com:davep/textual into get-treenode-by-id 2023-01-10 15:30:12 +00:00
Dave Pearson
494c63a72b Tweak the unknown node ID exception
See https://github.com/Textualize/textual/pull/1535#discussion_r1065904713
and https://github.com/Textualize/textual/pull/1535#discussion_r1065909144
2023-01-10 15:28:17 +00:00
Nitzan Shaked
1430b6bf33 POC for pluggable scrollbar renderers 2023-01-10 17:19:16 +02:00
Nitzan Shaked
d938ab9c5c fix PR comments 2023-01-10 17:15:12 +02:00
Nitzan Shaked
19d27aa7a6 proposal for fixing #1453
along the way:

make Tree._refresh_node somewhat more efficient by:
    * stopping early
    * coallescing multiple refresh() calls of single lines into one call

change "TreeControl" to "Tree" in a few texts
(and funny enough, in demo.css, which doesn't even use it);

remove the (appearantly dead) Tree._refresh_node_line
2023-01-10 17:06:08 +02:00
Dave Pearson
c027a06ee2 Merge branch 'main' into get-treenode-by-id 2023-01-10 14:59:36 +00:00
Dave Pearson
728acc27c0 Introduce an exception specific to handling an unknown node ID
See https://github.com/Textualize/textual/pull/1535#discussion_r1065873649
2023-01-10 14:57:35 +00:00
Rodrigo Girão Serrão
e1d36e5be8 Minor doc fixes. 2023-01-10 14:45:37 +00:00
Dave Pearson
4c75d1cb48 Merge pull request #1528 from davep/tree-node-highlighted-message
Add `Tree.NodeHighlighted` message
2023-01-10 14:44:03 +00:00
Dave Pearson
35dd73be49 Merge pull request #1536 from davep/paste-bubble
Make `events.Paste` bubble
2023-01-10 14:32:34 +00:00
Dave Pearson
a12e5aa0b3 Merge branch 'paste-bubble' of github.com:davep/textual into paste-bubble 2023-01-10 14:29:53 +00:00
Dave Pearson
d8a4fda4f1 Fix a CHANGELOG typo 2023-01-10 14:26:04 +00:00
Will McGugan
0f8c0b43bf Update CHANGELOG.md 2023-01-10 14:24:58 +00:00
Rodrigo Girão Serrão
0f3aff6fb1 Merge pull request #1408 from Textualize/review-styles-reference
Review styles reference
2023-01-10 14:20:11 +00:00
Dave Pearson
c19521ac43 Make events.Paste bubble
See #1434.
2023-01-10 14:14:54 +00:00
Dave Pearson
cd61b74dac Merge pull request #1534 from ofek/patch-1
Fix typo
2023-01-10 12:38:57 +00:00
Dave Pearson
39ec545b69 Update the CHANGELOG with a link to the PR
Now that it's a PR
2023-01-10 10:46:00 +00:00
Dave Pearson
6ea68cc112 Add Tree.get_node_by_id
The thinking here is that a user of a Tree may want to relate notes to other
parts of their UI, or other data in their application. While this could be
done by keeping a reference to the node itself, it could also be beneficial
to just track the ID. Given that ID is a public property of a TreeNode, but
given it doesn't currently have any other (public) purpose, this seems to
add some useful symmetry.
2023-01-10 10:42:07 +00:00
Ofek Lev
9b779c130d Fix typo 2023-01-10 01:42:16 -05:00
Will McGugan
bdf9a32b4d Merge pull request #1526 from tonybaloney/patch-1
Annotate only_one comment with additional context
2023-01-09 08:47:33 -08:00
Rodrigo Girão Serrão
d9a0c343d7 Update snapshot tests. 2023-01-09 16:42:15 +00:00
Rodrigo Girão Serrão
d41471034a Fix failing tests. 2023-01-09 16:39:12 +00:00
Rodrigo Girão Serrão
130d8b8d05 Increase negative y offset. 2023-01-09 16:34:24 +00:00
Rodrigo Girão Serrão
15691b4451 Remove debugging style. 2023-01-09 16:34:06 +00:00
Rodrigo Girão Serrão
e5375d0a2f Reset color cycle before tests.
We need to reset the color cycle for placeholders before each CSS property test because we need to ensure consistent colouring of the placeholders as tests are added/removed/reordered.
2023-01-09 16:26:33 +00:00
Rodrigo Girão Serrão
5cad93220e Merge branch 'main' into review-styles-reference 2023-01-09 16:19:24 +00:00
Rodrigo Girão Serrão
a3a452b674 Highlight rule usage in references.
[skip ci]
2023-01-09 16:14:11 +00:00
Rodrigo Girão Serrão
a1b9d4b2c5 Fix examples. 2023-01-09 16:11:45 +00:00
Rodrigo Girão Serrão
2827edcd49 Add example with all padding types. 2023-01-09 15:43:34 +00:00
Rodrigo Girão Serrão
e81779f97c Add 'See also' sections to references. 2023-01-09 15:25:47 +00:00
Dave Pearson
276da42233 Merge pull request #1531 from davep/tree-shake
Tidy up a couple of unused imports in `_tree.py`
2023-01-09 15:06:21 +00:00
Dave Pearson
bc790375bd Merge pull request #1529 from davep/blackify-tests
Run black over some more tests
2023-01-09 15:04:00 +00:00
Dave Pearson
2941cfb262 Remove unused import of line_crop 2023-01-09 14:34:44 +00:00
Dave Pearson
14ebe689b8 Remove unused import of Segment 2023-01-09 14:33:48 +00:00
Rodrigo Girão Serrão
8bf211b898 Fix typo. 2023-01-09 14:14:14 +00:00
Rodrigo Girão Serrão
8b7189ff52 Reorder subpages alphabetically. 2023-01-09 14:05:59 +00:00
Dave Pearson
5a09831c5e Run black over path tests 2023-01-09 14:00:52 +00:00
Dave Pearson
c84a5dc413 Run black over widget removing tests 2023-01-09 13:59:59 +00:00
Dave Pearson
3f6ec10311 Run black over widget mounting tests 2023-01-09 13:59:15 +00:00