Rodrigo Girão Serrão
aad41b8de0
Fix height example.
...
[skip ci]
2023-01-07 09:44:39 +00:00
Rodrigo Girão Serrão
08baaf11f3
Refactor width reference.
2023-01-07 09:40:32 +00:00
Rodrigo Girão Serrão
8de6d8fd69
Add new width comparison example.
2023-01-07 09:40:03 +00:00
Rodrigo Girão Serrão
e37b6e8cca
Update changelog.
2023-01-07 09:39:08 +00:00
Rodrigo Girão Serrão
4c3eb3e021
Update placeholder snapshot test.
...
Although there was no visual difference in the output, the snapshot tool was complaining because there are now less things to draw on the screen, thus the snapshots looked different. Hence, the placeholder snapshot needed to be updated.
2023-01-07 09:35:41 +00:00
Rodrigo Girão Serrão
94e8b77779
Simplify Placeholder implementation.
...
Instead of creating a private widget that is the only child of 'Placeholder', that was inheriting from 'Container', simplify everything. 'Placeholder' now inherits directly from 'Widget' and it saves a dictionary with its renderables per variant, instead of deferring that to the child '_PlaceholderLabel'.
2023-01-07 09:35:41 +00:00
darrenburns
c22cc30e71
Ensure pretty traceback for error in Widget compose method ( #1505 )
...
* Ensure pretty traceback for error in Widget compose method
* Fail fast and pretty tracebacks for Widget compose errors
2023-01-07 09:35:41 +00:00
Dave Pearson
1e8162e8d0
Add support for star/stop values on index
...
See https://github.com/Textualize/textual/pull/1495#pullrequestreview-1238616797
2023-01-07 09:35:41 +00:00
Dave Pearson
2bf41fe428
Correct docstring for the return type of index
2023-01-07 09:35:41 +00:00
Dave Pearson
53df47b401
Rename ImmutableSequence to ImmutableSequenceView
...
Also, in doing so, drop support for unrolling iterators and making them into
indexable sequences.
See the following feedback:
https://github.com/Textualize/textual/pull/1495#pullrequestreview-1238616797
https://github.com/Textualize/textual/pull/1495#issuecomment-1373553580
2023-01-07 09:35:41 +00:00
Dave Pearson
12c6129150
Tweak the unit tests for ImmutableSequence
...
Make it 100% clear that the tests that are about wrapping iterators actually
are wrapping iterators.
2023-01-07 09:35:41 +00:00
Dave Pearson
274bb634ca
Only convert to an indexable sequence if absolutely necessary
2023-01-07 09:35:41 +00:00
Dave Pearson
948cb6676f
Focus less on it being a list and more a thing that's wrapped
2023-01-07 09:35:41 +00:00
Dave Pearson
d95957188b
Simplify ImmutableSequence.__bool__
2023-01-07 09:35:41 +00:00
Dave Pearson
0029470b4b
Add read-only access to the children of a TreeNode
...
See #1398 .
2023-01-07 09:35:39 +00:00
Dave Pearson
2c827e18d0
Add a generic immutable sequence wrapper class
...
In anticipation of satisfying #1398 , this adds a generic immutable sequence
wrapper class. The idea being that it can be used to wrap up a list or
similar, that you don't want the caller to modify.
This commit aims to get the basics down for this, and also adds a minimal
set of unit tests.
2023-01-07 09:35:00 +00:00
Darren Burns
ad6a716d09
Fix mouse01 example background transparency
2023-01-07 09:35:00 +00:00
Dave Pearson
af56d88a6d
Add a public read-only parent property to TreeNode
...
See #1397 .
2023-01-07 09:34:56 +00:00
Rodrigo Girão Serrão
2867b09923
Update visibility reference.
2023-01-06 16:38:49 +00:00
Rodrigo Girão Serrão
2217a8f5fa
Add new visibility example.
...
This new example shows how we can have an invisible container with visible children.
2023-01-06 16:38:31 +00:00
Rodrigo Girão Serrão
d69168a922
Update visibility example to use labels.
2023-01-06 16:37:41 +00:00
Rodrigo Girão Serrão
498f452b88
Update tint reference.
2023-01-06 14:53:18 +00:00
Rodrigo Girão Serrão
ee4b2cfe9e
Update tint example to use labels.
2023-01-06 14:53:07 +00:00
Rodrigo Girão Serrão
69a143442c
Inline css type values in their reference.
...
[skip ci]
2023-01-06 14:50:31 +00:00
Rodrigo Girão Serrão
42baa0e074
Remove redundant values subsections.
...
[skip ci]
2023-01-06 14:41:13 +00:00
Rodrigo Girão Serrão
583b1273ac
Update text style reference.
...
[skip ci]
2023-01-06 14:18:50 +00:00
Rodrigo Girão Serrão
72d3171a79
Add example with all text styles.
2023-01-06 14:18:21 +00:00
Rodrigo Girão Serrão
1276629431
Update example.
2023-01-06 14:18:07 +00:00
Rodrigo Girão Serrão
c7c352a38a
Replace statics with labels.
...
[skip ci]
2023-01-06 10:56:55 +00:00
Rodrigo Girão Serrão
a25ba1bea4
Update *opacity references.
2023-01-06 10:47:31 +00:00
Rodrigo Girão Serrão
2dda286628
Fix alphabetical order of styles.
2023-01-06 10:42:18 +00:00
Rodrigo Girão Serrão
042bc3b3fe
Improve text-align example.
...
Replace statics with labels; change to a 2 x 2 grid layout to make it easier to see the difference between 'center' and 'justify'; increase readability by setting 'color: auto' in the labels.
2023-01-06 10:41:46 +00:00
Rodrigo Girão Serrão
7743feadff
Add GIF to show all scrollbar colors.
2023-01-06 10:28:54 +00:00
Rodrigo Girão Serrão
710697121d
Merge branch 'main' into review-styles-reference
...
[skip ci]
2023-01-06 10:05:16 +00:00
Will McGugan
85afdba125
Merge pull request #1480 from Textualize/fix-1479
...
Prevent scrollbar rules from being ignored
2023-01-06 01:58:35 -08:00
Will McGugan
70bded01f3
Merge pull request #1456 from nitzan-shaked/typing
...
basic typing fixes
2023-01-06 01:57:04 -08:00
Will McGugan
8ea2eae77b
Merge pull request #1500 from davep/faqtory-xkcd-327
...
Sanitise issue titles before running suggest on them
2023-01-06 01:53:58 -08:00
Dave Pearson
01e6ae43d0
Sanitise issue titles before running suggest on them
...
Applying
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
to #1472 .
2023-01-06 06:43:41 +00:00
Dave Pearson
83ce1204b9
Merge pull request #1487 from davep/tree-node-label-prop
...
Add public access (both get and set) to the `label` of a `TreeNode`
2023-01-06 06:13:34 +00:00
Will McGugan
ad70de5e87
added question
2023-01-05 21:06:30 +00:00
Rodrigo Girão Serrão
c65c691b5a
Rework text-align CSS reference.
...
[skip ci]
2023-01-05 18:35:21 +00:00
Rodrigo Girão Serrão
d27e13a49a
Add text-align CSS type.
2023-01-05 18:33:51 +00:00
Rodrigo Girão Serrão
fa0a4ba3d4
Fix link.
2023-01-05 18:29:51 +00:00
Rodrigo Girão Serrão
fb9e803863
Add default styles for scrollbar colors.
2023-01-05 16:22:51 +00:00
Dave Pearson
b8727a8908
Merge branch 'main' into tree-node-label-prop
2023-01-05 14:30:42 +00:00
Dave Pearson
18eae615cc
Remove unnecessary return from label.setter
...
Python is expressive, but it ain't that expressive.
2023-01-05 14:26:45 +00:00
Nitzan Shaked
6e9d302e15
fix typing of tuple[] for py3.7
2023-01-05 14:23:40 +02:00
Will McGugan
6cfad7c4b3
Merge pull request #1466 from Textualize/sleep-tweak
...
don't sleep small intervals
2023-01-05 04:17:23 -08:00
Will McGugan
3be8f799c4
add constant
2023-01-05 12:07:42 +00:00
Nitzan Shaked
b78ca2bad2
more PR fixes
2023-01-05 14:02:15 +02:00