Dave Pearson
010356a23e
Allow zero items to be passed to add_options and do zero work
2023-05-07 18:01:56 +01:00
Dave Pearson
b44983e8d4
Add an add_options method to the OptionList
...
In doing so, pretty much make the add_option code into the add_options code,
and then just have add_option call add_options.
See #2507 .
2023-05-07 17:56:02 +01:00
Dave Pearson
630f59dbd4
Remove unnecessary imports from example in docs
...
Perhaps a hangover from a previous take on this, or just a copy/paste-o.
Either way I just noticed this so thought I'd roll it in here.
2023-05-07 17:52:55 +01:00
Dave Pearson
14850d54a3
Merge pull request #2485 from davep/testing-testing-123-testing
2023-05-05 11:31:40 +01:00
Rodrigo Girão Serrão
73e4d5c6a7
Fix docs link.
2023-05-04 19:09:31 +01:00
Rodrigo Girão Serrão
a30cd159c4
Add control to TabbedContent message.
2023-05-04 19:04:10 +01:00
Rodrigo Girão Serrão
9d1f0283b2
Add control to RadioSet message.
2023-05-04 19:02:01 +01:00
Rodrigo Girão Serrão
8bf5316d65
Added control to markdown messages.
2023-05-04 19:01:31 +01:00
Rodrigo Girão Serrão
a10d2d9f98
Reference container markdown document.
...
Adding these references to the sub-widgets that make up a markdown document is necessary in order for the blocks to be able to post messages with a reference to the original document, which in turn is needed for the Message.control property to work.
2023-05-04 19:00:11 +01:00
Rodrigo Girão Serrão
2187a1d4a3
Add control to list view messages.
2023-05-04 18:55:51 +01:00
Rodrigo Girão Serrão
55e2e5d7e3
Add control to tree/dir tree messages.
2023-05-04 18:55:12 +01:00
Rodrigo Girão Serrão
14b70b0819
Add control to option list messages.
2023-05-04 18:53:29 +01:00
Dave Pearson
32fbdbd203
Merge pull request #2482 from davep/tree-lines-fix
2023-05-04 18:30:28 +01:00
Dave Pearson
6139c95f3a
Test that the event aliases are actually the same reference
...
I thought I thought I wanted what I thought but now I think about it I think
I thought wrong and now I think better.
2023-05-04 16:43:20 +01:00
Dave Pearson
8b36d29e74
Add a test for a radio set getting focus when a button gets clicked
2023-05-04 16:22:39 +01:00
Dave Pearson
19f4f64d96
Add tests for selection navigation in a radioset with no buttons pressed
2023-05-04 15:39:33 +01:00
Dave Pearson
e7d3b94334
Test that radioset wraps around when going off the bottom
2023-05-04 15:25:33 +01:00
Dave Pearson
b1443c0162
Test that radioset wraps around when going off the top
2023-05-04 15:22:30 +01:00
Dave Pearson
2113f415a0
Add a test that toggling a pressed radio button has no effect
2023-05-04 15:17:52 +01:00
Dave Pearson
b7cdbb0baa
Test to ensure that Changed.control is Control.checkbox
2023-05-04 15:12:15 +01:00
Dave Pearson
0b4d7fb091
Test to ensure that Changed.control is Control.radio_button
2023-05-04 15:10:45 +01:00
Rodrigo Girão Serrão
c4eda48a0a
Tweaks to DataTable docs. ( #2481 )
...
* Tweaks to DataTable docs.
Related PRs: #2479 .
* Fix link.
2023-05-04 14:55:14 +01:00
Dave Pearson
bba694e93a
Update the ChangeLog
2023-05-04 14:30:20 +01:00
Dave Pearson
47f52f7692
Merge branch 'main' into tree-lines-fix
2023-05-04 14:27:46 +01:00
Dave Pearson
10e61987e3
Add always_update as a parameter for a var reactive
...
Redux. I managed to commit the wrong thing last time; although it was using
this and this was done for that.
2023-05-04 14:17:20 +01:00
Dave Pearson
f6da3e9fb2
Add always_update as a parameter for a var reactive
2023-05-04 14:16:34 +01:00
Will McGugan
04083a73f8
exclusive false ( #2470 )
...
* exclusive false
* changelog
2023-05-04 11:46:20 +01:00
Rodrigo Girão Serrão
cbd68b20df
Datatable scrolling faq ( #2477 )
...
* Add FAQ about DataTable scrolling.
Related issues: #2458
* Write concisely.
* Update questions/datatable-doesnt-scroll.question.md
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
* Remove example.
* Add recommendation.
---------
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
2023-05-04 11:42:19 +01:00
Rodrigo Girão Serrão
38592c34bd
Add FAQ about DataTable scrolling. ( #2466 )
...
Related issues: #2458
2023-05-04 10:35:39 +01:00
Dave Pearson
805970193b
Merge branch 'main' into tree-lines-fix
2023-05-04 09:03:59 +01:00
Dave Pearson
71c5a44fdb
Take Tree.show_root into account when drawing guides
...
Rather than always start at the root, the code should start at the beginning
of the path.
See #2397 .
2023-05-04 08:53:24 +01:00
Dave Pearson
ae2a155347
Merge pull request #2473 from davep/fix-dir-tree-eager-path
2023-05-03 22:34:39 +01:00
Dave Pearson
7dfc3e57a1
Fix a crash when DirectoryTree starts out anywhere other than .
...
A hangover from the previous DirectoryTree, where setting the path didn't
matter. This now sets it *after* calling Tree's __init__, thus ensuring the
line cache and other related things have been created.
2023-05-03 20:54:54 +01:00
Rodrigo Girão Serrão
3728555fbd
Scroll cursor into view. ( #2464 )
...
* Scroll cursor into view.
Related issues: #2459 .
* Add regression test.
* Update changelog.
2023-05-03 13:57:04 +01:00
Will McGugan
e5c54a3683
blog post ( #2465 )
...
* blog posts
* fix typo
* word
* version bump
* changelog
* update words
v0.23.0
2023-05-03 13:22:22 +01:00
Dave Pearson
c87a2b1b37
Merge pull request #2463 from davep/directory-tree-redux
...
Allow changing the "root" of a `DirectoryTree`
2023-05-03 12:15:31 +01:00
Dave Pearson
2e89cd11bb
Add missing type annotation on render_label
2023-05-03 11:52:23 +01:00
Will McGugan
41dbc66b23
optimize focus ( #2460 )
...
* optimize focus
* immediate call
* update previews
* snapshot
2023-05-03 11:48:56 +01:00
Dave Pearson
9e15dc45aa
Link the non-issue-related DirectoryTree change back the PR
2023-05-03 11:30:44 +01:00
Dave Pearson
4250912a28
Don't reassign the path when watching the path
...
Bit of a thinko happening there.
2023-05-03 10:44:45 +01:00
Dave Pearson
af0ed17ebd
Merge branch 'main' into directory-tree-redux
2023-05-03 10:06:30 +01:00
Dave Pearson
c4e2144207
Update the CHANGELOG
2023-05-03 09:59:35 +01:00
Dave Pearson
23d6c3611a
Add DirectoryTree.reload
...
This is a general reload; reloading the whole tree.
2023-05-03 09:34:55 +01:00
Dave Pearson
3d6fd7ef4c
Add a docstring to _load_directory
2023-05-03 09:13:42 +01:00
Dave Pearson
f509767141
Don't cast a DirEntry.path to a Path any more
...
It's always a Path now.
2023-05-03 09:13:11 +01:00
Dave Pearson
8311f837b8
Add a docstring to render_label
...
Well, okay, borrow the same from Tree.
2023-05-03 09:08:21 +01:00
Dave Pearson
d1d435d68b
Flesh out the docstring for validate_path
2023-05-03 09:02:49 +01:00
Dave Pearson
e4c0517cc6
Add the node to the FileSelected message
...
Until now it wasn't really possible to know *which* DirectoryTree widget had
sent a given message; this makes it available by providing the `node`, which
in turn will provide the `tree`.
2023-05-03 08:58:11 +01:00
Dave Pearson
465f522ef3
Add a reminder to add the node to the FileSelected message
2023-05-02 16:48:06 +01:00
Dave Pearson
5f22cf8e7b
Remove empty rule from DirectoryTree.DEFAULT_CSS
2023-05-02 16:46:07 +01:00