Commit Graph

4420 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
fa6bd44866 Housekeeping. 2023-01-24 18:46:37 +00:00
Rodrigo Girão Serrão
ad24349bb2 Move auxiliary type to TYPE_CHECKING. 2023-01-24 18:38:30 +00:00
Rodrigo Girão Serrão
cd0cc6030b Changelog. 2023-01-24 18:36:55 +00:00
Rodrigo Girão Serrão
c8ff5bd14b Add tests. 2023-01-24 18:30:24 +00:00
Rodrigo Girão Serrão
15c95db960 Add mechanism to wait for current and scheduled animations. 2023-01-24 18:22:50 +00:00
Rodrigo Girão Serrão
34a08b7fe5 Check if a rule is being animated when updating it.
This is the fix for #1372 because the styles that were sticking had nothing to do with `:hover` per se.
The issue was in the fact that we were trying to start a second animation (back to the default background color) while the first animation hadn't started yet, so we would skip the creation of the new animation but the old one would still run to completion.

This issue also affects animations that start with a delay. If we set an animation A -> B with a delay of 10s and 1s later we set an animation B -> A, then the animation A -> B will run after 9s but the animation B -> A will not run because it was not created in the first place.
2023-01-24 16:29:54 +00:00
Rodrigo Girão Serrão
1d18ac35c5 Add method to check if something is being animated. 2023-01-24 16:29:27 +00:00
Rodrigo Girão Serrão
a01563b068 Add mechanism to keep track of scheduled animations. 2023-01-24 16:29:13 +00:00
Dave Pearson
2662e6b292 Merge pull request #1652 from davep/remove-children-updated-doc-reference
Remove mention of `ChildrenUpdated` from the `ListView` docs
2023-01-24 09:54:32 +00:00
Dave Pearson
faac89fd8d Remove mention of ChildrenUpdated from the ListView docs
As pointed out in #1649, a `ChildrenUpdated` message is documented but it
doesn't exist in the code. It looks like it got added during development,
then removed after it was realised it wasn't needed, but presumably it got
left in the docs:

  https://github.com/Textualize/textual/pull/1143#discussion_r1030409026
2023-01-24 07:47:18 +00:00
Rodrigo Girão Serrão
dde90a8069 Merge pull request #1646 from Textualize/test-pause
Add pause to flaky test.
2023-01-23 18:36:08 +00:00
Rodrigo Girão Serrão
5c73387bca Pause before rendering input widget. 2023-01-23 18:13:27 +00:00
Will McGugan
9e35f7b4e4 Merge pull request #1636 from Textualize/stuck-screen
fix stuck screen
2023-01-23 18:03:07 +01:00
Will McGugan
068345076b Merge branch 'main' into stuck-screen 2023-01-23 17:28:17 +01:00
Dave Pearson
7df94c2084 Merge pull request #1641 from davep/explain-before-after
Explain the significance of the before/after types
2023-01-23 16:26:45 +00:00
Rodrigo Girão Serrão
4baf4f4bce Merge pull request #1640 from Textualize/fix-1406
Correct the dimension relative units in grid-rows/columns were assigned to
2023-01-23 16:24:58 +00:00
Will McGugan
b8e8636832 Merge pull request #1633 from davep/click-warn
Catch an attempt to use the `textual` command in a non-dev context
2023-01-23 17:18:03 +01:00
Dave Pearson
c2e406e48a Explain the significance of the before/after types
This was asked about on Discord; reading the docs over again it's not
obvious what an `int` is for, or a `str`. This change seeks to explain
things at the API level at least.
2023-01-23 15:09:22 +00:00
Rodrigo Girão Serrão
e7f76bf85a Add regression tests. 2023-01-23 15:04:36 +00:00
Dave Pearson
383ab18831 Merge pull request #1639 from davep/param-type-sweepup
Remove some parameter types that got missed on `Widget.move_child`
2023-01-23 14:57:16 +00:00
Rodrigo Girão Serrão
86eb12f335 Update changelog. 2023-01-23 14:45:54 +00:00
Rodrigo Girão Serrão
8aeee6a360 Add percent_unit parameter to ScalarListProperty.
Without this information, grid-rows and grid-columns will have the same percent_unit for scalars that are relative and thus relative dimensions will be wrong.
2023-01-23 14:42:27 +00:00
Rodrigo Girão Serrão
8aeb6c1e01 Fix width/height relationshipt with rows/columns. 2023-01-23 14:41:36 +00:00
Dave Pearson
ac11a4f461 Remove some parameter types that got missed on Widget.move_child
Rogue colon likely threw off whatever regexp was being used to hunt the
examples down.
2023-01-23 14:34:54 +00:00
Will McGugan
4a924d446c fix typo 2023-01-23 12:50:34 +01:00
Will McGugan
cd92356b8e update dependencies 2023-01-23 12:46:31 +01:00
Will McGugan
2b3d966410 moar pauses 2023-01-23 12:31:18 +01:00
Will McGugan
81d086e8d7 fix snapshot test 2023-01-23 12:11:05 +01:00
Will McGugan
e852795e10 comment 2023-01-23 12:09:41 +01:00
Will McGugan
dc97baedc5 comment 2023-01-23 12:08:26 +01:00
Will McGugan
b70b3997f0 remove comments 2023-01-23 12:03:38 +01:00
Will McGugan
3b9bc0d536 fix stuck screen 2023-01-23 11:57:48 +01:00
Will McGugan
cc1f2f61d9 Merge pull request #1629 from Textualize/rodrigogiraoserrao-patch-1
Skip FAQtory on new issues by Textualize members
2023-01-21 18:15:05 +01:00
Dave Pearson
98f904223c Catch an attempt to use textual command in non-dev
This provides an interim fix for #983. While the longer-term solution for
this is for us to *not* have the `textual` command available if the user has
installed textual rather than textual[dev], this at least informs the user
what's going on and why for now.
2023-01-21 09:42:21 +00:00
Rodrigo Girão Serrão
94157eae59 Skip FAQtory on new issues by Textualize members
Fix #1617 (excellent idea).
2023-01-20 15:47:13 +00:00
Will McGugan
0691462871 Merge pull request #1624 from Textualize/0.10.1
version bump
v0.10.1
2023-01-20 01:07:27 -08:00
Will McGugan
35f866c0cb version bump 2023-01-20 08:59:37 +00:00
Will McGugan
82372d36a6 Merge pull request #1623 from davep/diagnose-diagnose
Import type annotations from the future for `textual diagnose`
2023-01-20 00:57:37 -08:00
Dave Pearson
78f85ba325 Import type annotations from the future for textual diagnose
I mean, I guess flat out crashing on older versions of Python is *a* way of
reporting the Python version. Kinda?

See the side issue reported in #1622.
2023-01-20 07:12:59 +00:00
Will McGugan
c9b84f523c Merge pull request #1621 from Textualize/strip-text
Strip text
2023-01-19 07:38:46 -08:00
Will McGugan
14c7eea8c2 Merge branch 'main' into strip-text 2023-01-19 07:38:36 -08:00
Will McGugan
6b51f0044b Merge pull request #1518 from edrogers/fix-formatting-of-default-screenshot-filename
Make default filename for screenshots use ISO8601 datetime format
2023-01-19 07:37:55 -08:00
Dave Pearson
a87198654a Merge branch 'main' into fix-formatting-of-default-screenshot-filename 2023-01-19 15:32:11 +00:00
Will McGugan
03d1a55f7b changelog entry 2023-01-19 15:30:42 +00:00
Will McGugan
8e06312e18 added text property 2023-01-19 15:29:50 +00:00
Will McGugan
c6909b76c4 update bug report template 2023-01-19 14:50:30 +00:00
Will McGugan
9487f79dff added version link 2023-01-19 14:47:08 +00:00
Will McGugan
1f71656c2a Merge pull request #1618 from Textualize/0.10.0
Version bump
v0.10.0
2023-01-19 06:38:45 -08:00
Will McGugan
56d8bbff4f Version bump 2023-01-19 14:30:38 +00:00
Will McGugan
3669bae4e2 Merge pull request #1615 from Textualize/test-freeze
Fix for test freeze
2023-01-19 06:28:01 -08:00