Will McGugan
3a17a76233
Exit debug ( #2554 )
...
* show single error by default
* changelog
* show numbers of errors
* changelog
2023-05-16 21:34:34 +01:00
Will McGugan
abb7705ed0
wait for screen ( #2584 )
...
* wait for screen
* comments and changelog
* wait for screen after keys
* extra wait for animation
* comment
* comment
* docstring
2023-05-16 21:06:09 +01:00
Rodrigo Girão Serrão
7a8d6920e8
Error when dismissing non-active screen.
...
Related issues: #2575 .
2023-05-16 11:14:54 +01:00
Rodrigo Girão Serrão
81289c328a
Fix empty paste.
...
Related issues: #2563 .
2023-05-15 13:25:01 +01:00
Rodrigo Girão Serrão
0b6e3b3040
Merge branch 'main' into auto-focus
2023-05-15 10:41:15 +01:00
Rodrigo Girão Serrão
c967661699
Merge branch 'main' into move-child-no-op
2023-05-15 10:31:43 +01:00
Rodrigo Girão Serrão
8dc801fec7
Changelog.
2023-05-11 15:03:21 +01:00
Dave Pearson
2d75ca0d77
Merge pull request #2536 from davep/expand-tree-expand-messages
...
Ensure that `TreeNode` messages are posted when via-API changes are made
2023-05-10 14:18:24 +01:00
Rodrigo Girão Serrão
8dd627b0f4
Merge branch 'main' into sub-title-str
2023-05-10 13:10:48 +01:00
Dave Pearson
28be54d10d
Merge branch 'main' into expand-tree-expand-messages
2023-05-10 10:12:58 +01:00
Dave Pearson
c7fc66fa6c
Ensure that TreeNode messages are posted when via-API changes are made
...
Until now the Tree.NodeExpanded and Tree.NodeCollapsed messages were only
sent out when changes were made to the tree by user interaction. This meant
that if any changes were made with the TreeNode expand, expand_all,
collapse, collapse_all, toggle or toggle_all API calls no messages would be
sent.
This PR corrects this.
The work here is, in part, required for #2456 (DirectoryTree lazy-loads
directory information on node expansion so if someone is expanding nodes
under code control the DirectoryTree never gets to know that it should load
a directory's content) and will build on #1644 , essentially adding a missing
aspect to the latter PR.
2023-05-10 09:24:07 +01:00
Dave Pearson
0eeadf9ae9
Update the CHANGELOG
2023-05-09 21:01:31 +01:00
Rodrigo Girão Serrão
e8baf52bdd
Allow setting (sub)title of any type.
...
Related issues: #2521 .
2023-05-09 16:56:56 +01:00
Rodrigo Girão Serrão
eafe6b1786
Moving child before/after self is a no-op.
...
Related issues: #1743 .
2023-05-09 15:57:23 +01:00
Rodrigo Girão Serrão
8d3f69a04d
Add auto_focus attribute to screens.
2023-05-09 14:57:50 +01:00
Will McGugan
e3115c50bf
fix for code browser type error ( #2514 )
2023-05-08 18:42:10 +01:00
Will McGugan
dc102563e9
changelog and release post ( #2513 )
...
* changelog and release post
* fix version
* link Select
* remove superfluous css
* Update docs/blog/posts/release2-24-0.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
* Update docs/blog/posts/release2-24-0.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
---------
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
2023-05-08 17:45:06 +01:00
Rodrigo Girão Serrão
855c90d4f0
Extend @on decorator to filter matchable attributes ( #2498 )
...
* Add tests for #2484 .
* Implement @on extension.
[skip ci]
Related issues: #2484 .
* Changelog.
* Add missing @on test.
* Remove debug prints.
* Document changes.
* Update tests.
Test now fully works, as of #2490 .
* Cache parsed selectors.
* Streamline exit condition.
* Fix typing.
* More succint wording.
* Document 'on' kwargs.
* Update src/textual/_on.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
* Update docs/guide/events.md
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
* Change 'on' API.
* Remove example code.
* Address feedback.
* Update src/textual/_on.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
* Address review feedback.
* Fix #2499 .
* don't require control to be manually specified
* update docstring
* deleted words
---------
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
2023-05-08 17:30:07 +01:00
Will McGugan
dd7e768887
merged changelog sections
2023-05-08 12:51:50 +01:00
Rodrigo Girão Serrão
8059e5c1a7
Merge branch 'main' into messages-control
2023-05-08 11:18:43 +01:00
Rodrigo Girão Serrão
9c9829eb0f
Add 'control' alias to Tabs messages. ( #2483 )
...
* Add 'control' alias to Tabs messages.
Related issues: #2478 .
* Changelog.
2023-05-08 11:15:19 +01:00
Will McGugan
7db7139bb8
Select widget ( #2501 )
...
* overlay rule
* select WIP
* select control, made binding description optional
* changelog
* style tweak
* Added constrain
* changelog
* test fix
* drop markup, tidy
* tidy
* select namespace
* tests
* docs
* Added changed event
* changelog
* expanded
* tests and snapshits
* examples and docs
* simplify
* update reactive attributes
* type fix
* docstrings
* allow renderables
* superfluous init
* typing fix
* optimization
* revert optimizations
* fixed words
* changelog
* docstrings
* don't need this
* changelog
* comment
* Update docs/widgets/select.md
Co-authored-by: Dave Pearson <davep@davep.org >
* review changes
* review updates
---------
Co-authored-by: Dave Pearson <davep@davep.org >
2023-05-08 10:55:39 +01:00
Dave Pearson
c2a19bd632
Merge pull request #2510 from davep/chainsaw
...
Add the ability to remove nodes from a `Tree`
2023-05-08 10:51:44 +01:00
Dave Pearson
0bb0f4d179
Merge pull request #2508 from davep/add-options
...
Add `add_options` to `OptionList`
2023-05-08 10:51:15 +01:00
Rodrigo Girão Serrão
1e2f632fc6
Fix TabbedContent __init__ signature. ( #2497 )
2023-05-08 10:47:15 +01:00
Willi Ballenthin
483aa54bd6
Catch OSError when source code is not available ( #2469 )
...
* Catch OSError when source code is not available
* update changelog with reference to fixed bug
2023-05-08 10:45:56 +01:00
Rodrigo Girão Serrão
819b2f1eb3
Add DataTable.move_cursor ( #2479 )
...
* Add 'DataTable.move_cursor'.
Related issues: #2472 .
* Fix #2471 .
* Simplify cursor changes.
* Address review feedback.
Related comments: https://github.com/Textualize/textual/pull/2479\#discussion_r1185016002
2023-05-08 10:44:34 +01:00
Dave Pearson
c9d7bb84e2
Update the CHANGELOG
2023-05-08 10:18:34 +01:00
Dave Pearson
6bb2b21091
Update the CHANGELOG
2023-05-08 10:17:36 +01:00
Dave Pearson
e526a32220
Update the CHANGELOG
2023-05-07 18:07: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
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
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
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
2023-05-03 13:22:22 +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
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
Will McGugan
90d9693168
typo
2023-05-02 16:36:41 +01:00
Will McGugan
91a9d570a4
On decorator ( #2453 )
...
* Add on decorator
* decorator code
* docs for on decorator
* Examples
* test errors
* simplify listing
* words
* changelog
* Update docs/guide/events.md
Co-authored-by: Dave Pearson <davep@davep.org >
* Update docs/guide/events.md
Co-authored-by: Dave Pearson <davep@davep.org >
* Update docs/examples/events/on_decorator.css
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Update docs/guide/events.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* rewording
* comment
* clarification
* Added note
---------
Co-authored-by: Dave Pearson <davep@davep.org >
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-02 16:17:40 +01:00
Dave Pearson
16ca3e10d1
Merge branch 'main' into outline-top-bottom-colour-glitch
2023-05-02 11:34:14 +01:00