Commit Graph

600 Commits

Author SHA1 Message Date
darrenburns
0dc58bd151 Ensure _options attribute is assigned in Select constructor (#2690)
* Ensure _options attribute is assigned in Select constructor

* Update CHANGELOG.md

---------

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2023-05-31 09:45:06 +01:00
Will McGugan
149c39c86c Tooltips (#2670)
* inflect

* diagram

* tooltip render

* tooltip property

* add guard

* tooltip docs

* docs

* tidy, fix horizontal

* words, removed comment

* fix screenshot render

* simplify

* simfplify

* changelog

* simplify optimize

* inflect tests

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* docstring

* disable auto focus

* should be fraction

* optimization

* snapshot update

* Update tests/snapshot_tests/snapshot_apps/scroll_to_center.py

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-30 16:14:31 +01:00
Will McGugan
4930c1615b Merge branch 'main' into worker-coverage 2023-05-30 15:55:46 +01:00
Rodrigo Girão Serrão
ee6f1b93a3 Merge pull request #2692 from Textualize/switch-screen
Fix issue with switch screen.
2023-05-30 15:09:19 +01:00
Rodrigo Girão Serrão
ce771c19f4 Fix issue with switch screen. 2023-05-30 13:55:17 +01:00
darrenburns
3dea4337ac Add Validator framework note to CHANGELOG (#2685) 2023-05-30 13:02:46 +01:00
Rodrigo Girão Serrão
9569a98c77 Increase worker coverage and fix bug. 2023-05-29 19:49:58 +01:00
darrenburns
a40300a6f5 Ensure reflow reflows non-visible widgets, fix scroll_to_center issue (#2684) 2023-05-29 18:23:49 +01:00
Rodrigo Girão Serrão
6cb052a7f2 Fix changelog. (#2683) 2023-05-29 18:17:31 +01:00
darrenburns
3e7b2c53a8 Add Widget.remove_children method (#2657) 2023-05-29 18:03:42 +01:00
Rodrigo Girão Serrão
73d55725b5 Merge pull request #2604 from Textualize/input-auto-completion
Input completion suggestions
2023-05-29 14:48:40 +01:00
Will McGugan
1ea892b062 handler name in classvar (#2675)
* handler name in classvar

* fix for worker handler name

* fix custom templates, event docs

* doc tweak

* doc tweak

* restore signature
2023-05-28 14:56:18 +01:00
Will McGugan
ab10c7c326 fix zero division error (#2674)
* fix zero division error

* push tests
2023-05-28 14:56:05 +01:00
Rodrigo Girão Serrão
31e2d1c839 Merge branch 'main' into input-auto-completion 2023-05-25 17:42:37 +01:00
Dave Pearson
93c3c3652b Merge branch 'main' into multiselect 2023-05-25 13:59:34 +01:00
Aaron Stephens
20d19d977d Refactor Message.control and Tree Messages (#2602)
* refactor(message): make control a property

* refactor(_tree): remove tree parameter on messages

* refactor(_directory_tree): remove tree parameter on message

* fix: tree message calls

* fix(_select): make Changed.control a property

* refactor(_on): control check

* refactor(_select): rename Changed.widget to select

* docs: changelog entry
2023-05-25 13:48:31 +01:00
Rodrigo Girão Serrão
5cb30b5ecc Merge pull request #2628 from Textualize/auto-focus-improv
Add auto focus to app.
2023-05-25 11:59:54 +01:00
Dave Pearson
4472c862be Anticipate SelectionList making it into 0.27.0 2023-05-25 11:28:52 +01:00
Will McGugan
8151946f38 add blur (#2645)
* add blur

* docstring

* blur on disabled

* snapshot test

* Add test
2023-05-24 20:16:11 +01:00
Rodrigo Girão Serrão
e63ec577cd Address review feedback. 2023-05-23 11:46:05 +01:00
Rodrigo Girão Serrão
bc92cf57e7 Add auto focus to app.
Related issues: #2594.
2023-05-23 11:32:40 +01:00
Rodrigo Girão Serrão
124e62e41b Changelog. 2023-05-23 10:50:00 +01:00
Will McGugan
be49aabefe remove markup, simplify repr (#2623)
* remove markup, simplify repr

* changelog

* remove rendundant repr (thanks Paul)

* changelog
2023-05-22 20:26:37 +01:00
Rodrigo Girão Serrão
33a470f569 Fix footer highlight when pushing modal. 2023-05-22 11:45:40 +01:00
Rodrigo Girão Serrão
4e86e655d6 Merge branch 'main' into placeholder-cycle 2023-05-22 10:43:12 +01:00
Rodrigo Girão Serrão
5e04a4d4de Add description to work decorator. (#2605)
* Add description to work decorator.

* Fix stutter.
2023-05-22 10:32:23 +01:00
Will McGugan
7d0d1ac5c8 Bump0260 (#2617)
* full map

* docstring changelog

* changelog

* simplify, add comment
2023-05-20 11:30:42 +01:00
Rodrigo Girão Serrão
6523fbaff1 Fix tests. 2023-05-18 16:27:09 +01:00
Rodrigo Girão Serrão
c85e428228 Fix placeholder color cycling. 2023-05-18 16:24:07 +01:00
Rodrigo Girão Serrão
0c520f13ce Change naming. 2023-05-18 13:58:59 +01:00
Rodrigo Girão Serrão
f464241fd6 Implement auto-completion. 2023-05-18 13:41:37 +01:00
Will McGugan
ff5665051b Release0250 (#2598)
* version bump

* changelog
2023-05-17 16:30:36 +01:00
darrenburns
e25c6290ba Add classes to Tab widget (#2589)
* Add classes to Tab widget

* Update CHANGELOG
2023-05-17 16:21:32 +01:00
Dave Pearson
7ff205bc29 Merge pull request #2545 from davep/directory-tree-work-in-worker
Load `DirectoryTree` contents in a worker
2023-05-17 15:42:51 +01:00
Dave Pearson
3f6472823e Merge branch 'main' into directory-tree-work-in-worker 2023-05-17 14:19:59 +01:00
Rodrigo Girão Serrão
dea133d357 Merge branch 'main' into auto-focus-improv 2023-05-17 10:28:54 +01:00
Will McGugan
c12fa0e4da fix for dark switch (#2585) 2023-05-17 07:44:36 +01:00
Will McGugan
53e765f7d6 Avoid docks when scrolling (#2571)
* handle docked layers

* handle scroll better

* snapshot update

* remove commented out code

* superflous

* dock gutter

* snapshit

* snapshit test

* changelog

* mistake

* docstrings

* changelog

* whitespace

* missing punctuation

* ofx docstring

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-16 21:34:59 +01:00
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
Dave Pearson
804d85a2c9 Merge branch 'main' into directory-tree-work-in-worker 2023-05-16 15:16:31 +01:00
Rodrigo Girão Serrão
4b22234b24 Merge branch 'main' into auto-focus-improv 2023-05-16 11:40:13 +01:00
Rodrigo Girão Serrão
b592ac077a AUTO_FOCUS targets first focusable widget.
Related issues: #2578.
2023-05-16 11:27:24 +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
Dave Pearson
5f839da684 Merge branch 'main' into directory-tree-work-in-worker 2023-05-11 15:32:17 +01:00
Rodrigo Girão Serrão
8dc801fec7 Changelog. 2023-05-11 15:03:21 +01:00
Dave Pearson
c45126b21c Update the ChangeLog 2023-05-11 11:19:30 +01:00