Commit Graph

4656 Commits

Author SHA1 Message Date
Will McGugan
56ef37637b superfluous words 2023-01-26 12:31:45 +01:00
Will McGugan
15f116d160 moved link 2023-01-26 12:25:43 +01:00
Will McGugan
dc5041f1e1 update to intro page, fix for API docs 2023-01-26 12:21:49 +01:00
Rodrigo Girão Serrão
d75845e52a Move reactives and messages to top of widget source. 2023-01-26 11:20:45 +00:00
Rodrigo Girão Serrão
210e39488f Add template for widget reference. 2023-01-26 10:56:32 +00:00
Rodrigo Girão Serrão
4405f2da2a Add plugin to ignore docs templates. 2023-01-26 10:47:53 +00:00
Dave Pearson
90736129cf Prune a word hangover in CHANGELOG
Nowt optional about the new methods!
2023-01-25 20:48:07 +00:00
Dave Pearson
64ac4345a8 Update the CHANGELOG to reflect the method-only approach 2023-01-25 20:47:05 +00:00
Dave Pearson
e59064e204 Switch away from a keyword approach to a dedicated method approach
While descriptive keywords tend to be a preference within the Textual
codebase for many things, this was one of those times where a developer's
code using the library was likely going to read better if there's a switch
to using dedicated methods; this approach means we can just go with "all"
rather than "{action}_all" without needing to shadow a Python builtin.

This also does mirror mount/mount_all too.
2023-01-25 20:39:49 +00:00
Dave Pearson
c678e3e1e3 Reduce the expand/collapse/toggle kwarg to just 'all'
See https://github.com/Textualize/textual/pull/1644#discussion_r1086493525
-- not exactly my preference but it's been decided it makes for a nicer
interface.
2023-01-25 16:48:04 +00:00
Rodrigo Girão Serrão
ef779d71dd Add bindings and component classes to reference pages. 2023-01-25 15:19:16 +00:00
Rodrigo Girão Serrão
b63e2366e1 Remove 'action' column from bindings. 2023-01-25 15:00:45 +00:00
Dave Pearson
ab49dce39b Merge pull request #1665 from davep/workaround-windows-paste
Workaround for a Windows paste issue
2023-01-25 14:52:59 +00:00
Rodrigo Girão Serrão
2ea501ea9b Document bindings and component classes. 2023-01-25 14:49:37 +00:00
Rodrigo Girão Serrão
fd0d1feb79 Add helper tool to generate widget docs.
References: #1662, #1543
2023-01-25 14:48:56 +00:00
Dave Pearson
44d48e244e Fix typo in replace
AKA: don't mix octal and hex Dave!
2023-01-25 14:43:41 +00:00
Rodrigo Girão Serrão
66b158d7e4 Remove dead import. 2023-01-25 14:31:49 +00:00
Dave Pearson
8145c08007 Update the CHANGELOG 2023-01-25 14:30:56 +00:00
Rodrigo Girão Serrão
bf02c7b5d3 Don't inherit component classes explicitly. 2023-01-25 14:30:06 +00:00
Dave Pearson
32bb79362c Strip NULs from bracketed paste text as a Windows workaround
See #1661 for lots of context. Long story short, in Windows Terminal it
looks like any character that would requite the press of a modifier key
causes a NUL to appear in the pasted text for that character. This feels
like it could be a bug in Windows Terminal and we will investigate and
report at some point.

Meanwhile though this provides a workaround that has the paste experience
work the same as I'm seeing on macOS (and I would imagine in most terminals
on GNU/Linux too).
2023-01-25 14:24:37 +00:00
Rodrigo Girão Serrão
11f470b59b Ensure animation scheduling order. 2023-01-25 13:40:57 +00:00
Will McGugan
7bdc8f9c7a Merge pull request #1664 from Textualize/lonely-p
don't request sync on macOS app
2023-01-25 14:28:11 +01:00
Rodrigo Girão Serrão
0f2e991bf5 Rename event. 2023-01-25 13:23:29 +00:00
Will McGugan
6edfc82513 Merge pull request #1653 from Textualize/self-remove
Rhymes with "Bed rock"
2023-01-25 14:18:33 +01:00
Rodrigo Girão Serrão
f3999bbe47 Add docs to bindings and component classes. 2023-01-25 13:03:10 +00:00
Will McGugan
a292086a62 comment and docstring 2023-01-25 13:39:24 +01:00
Will McGugan
15af0cd2c6 wrong env var 2023-01-25 13:28:37 +01:00
Will McGugan
9caf0cf536 don't request sync on macOS app 2023-01-25 13:26:10 +01:00
Rodrigo Girão Serrão
9cb32d2b66 Fix alphabetical order. 2023-01-25 11:41:33 +00:00
Rodrigo Girão Serrão
fcba6ecaad Omit default values for attributes.
We copy the mkdocstrings template for attributes so that we can exclude the (default) value for attributes (and class variables) from the documentation as that is generally useless.
2023-01-25 11:41:05 +00:00
Will McGugan
d058477e22 Merge branch 'main' into fix-1372 2023-01-25 12:06:18 +01:00
Will McGugan
aba2633f44 Update tests/test_widget.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2023-01-25 12:00:51 +01:00
Will McGugan
8762e34191 Merge branch 'main' into tree-deeply 2023-01-25 11:56:28 +01:00
Will McGugan
a61e61f17b Merge pull request #1637 from davep/widget-importing
Support easier widget "support classes" importing
2023-01-25 11:53:32 +01:00
Will McGugan
5e0996d3aa Merge pull request #1627 from Textualize/fix-1616
Changing overflow programmatically updates layout
2023-01-25 11:52:36 +01:00
Will McGugan
b9b53b8677 Merge branch 'main' into fix-1616 2023-01-25 11:52:29 +01:00
Rodrigo Girão Serrão
3a8ad21aee Merge branch 'main' into fix-1372 2023-01-25 08:11:08 +00:00
Dave Pearson
82e2739196 Merge pull request #1660 from davep/stop-input-double-paste
Fix double-paste into `Input`
2023-01-24 20:55:45 +00:00
Dave Pearson
d101e3d4e7 Fix double-paste into Input
See #1657.
2023-01-24 20:16:50 +00:00
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
Dave Pearson
4bb7326f7d Merge pull request #1656 from davep/app-mount-all-doc-update
Explain the significance of the before/after types (redux)
2023-01-24 17:32:16 +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
92c03b0e11 Explain the significance of the before/after types (redux)
Follows on from https://github.com/Textualize/textual/pull/1641 where I did
the update for mounting via Widget but forgot about App.
2023-01-24 15:15:46 +00:00
Will McGugan
d10f0cbc79 docstrings 2023-01-24 16:04:33 +01:00