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
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
Dave Pearson
8872956b29
Run black over arrange tests
2023-01-09 13:58:25 +00:00
Dave Pearson
afc7ba2a37
Run black over unmount tests
2023-01-09 13:57:49 +00:00
Dave Pearson
5df5f12906
Run black over node tests
2023-01-09 13:57:13 +00:00
Rodrigo Girão Serrão
1300807b3a
Put example outputs in first tab.
2023-01-09 13:57:04 +00:00
Dave Pearson
06ab4f4d70
Run black over child focus tests
2023-01-09 13:56:35 +00:00
Dave Pearson
04ef895626
Run black over child widget moving tests
2023-01-09 13:55:53 +00:00
Rodrigo Girão Serrão
e7afcbc0b5
Add reference to 'textual borders' command.
2023-01-09 13:52:02 +00:00
Rodrigo Girão Serrão
dd6e73aa39
Add subsections for references with 2+ examples.
2023-01-09 13:50:45 +00:00
Rodrigo Girão Serrão
71b859b6e2
Add thorough example for all outlines.
2023-01-09 13:49:32 +00:00
Dave Pearson
489ba10c8a
Sprinkle some pauses into the node message tests
2023-01-09 13:36:29 +00:00
Dave Pearson
346659f47f
Move typing of the tree into its own class
2023-01-09 13:28:25 +00:00
Dave Pearson
c00a6da90d
Check if I need to import from the future for Python 3.8
2023-01-09 13:13:54 +00:00
Dave Pearson
151673cd53
Remove empty docstring
2023-01-09 13:12:57 +00:00
Dave Pearson
57687ccacf
Update the ChangeLog with details about Tree.NodeHighlighted
2023-01-09 12:57:23 +00:00
Dave Pearson
0cf299540f
Add a message for when a node is highlighted
...
This is sort of different from selected. Selected is when someone mashes the
enter button or clicks on a node. Highlighted is when the cursor moves into
a new node.
See #1400 .
2023-01-09 12:54:57 +00:00
Dave Pearson
6f10c63bb0
Perform tests on all recorded tree events
2023-01-09 12:54:26 +00:00
Dave Pearson
9226e90a55
Give the existing node messages a common base class
...
All three do the same thing, so we may as well give them a common base;
especially given that we're about to go and add yet another message that'll
do the same thing again but only (because we need it to) differ in name.
2023-01-09 12:21:21 +00:00