Dave Pearson
6738c5686c
Correct the wording of the description of Switch.value
...
It's not just the default value, it's the ongoing value too and can be used
to change the switch.
2023-02-23 14:28:25 +00:00
Dave Pearson
3fd3d272ce
Add the widget reference for Checkbox
2023-02-23 14:26:11 +00:00
Will McGugan
4cf7492a28
docstrings
2023-02-23 13:53:36 +00:00
Dave Pearson
66af586d0e
Add a missing
2023-02-23 13:52:22 +00:00
Will McGugan
f723f3771f
changelog
2023-02-23 13:51:34 +00:00
Will McGugan
7d99d168ff
prevent implementation
2023-02-23 13:49:07 +00:00
Dave Pearson
6233ae3377
Extend and improve the RadioSet docstrings
2023-02-23 13:39:48 +00:00
Dave Pearson
652d449643
Type-tidy the radio set button query
2023-02-23 13:34:08 +00:00
Dave Pearson
affb3b696f
Type-tidy the radio set event handling
2023-02-23 13:32:17 +00:00
Dave Pearson
f52aac4952
Initial work on adding toggle buttons to the documentation
...
This just gets the API docs into place, and tidies up some of the docstirngs.
2023-02-23 13:27:27 +00:00
Dave Pearson
99341a9cd4
Rename the file that holds ToggleButton
...
This makes it more in keeping with other widgets, despite the fact that it
should be considered to be an internal widget.
2023-02-23 12:29:50 +00:00
Dave Pearson
1c05f79f3c
Add some default styling to a radio set
2023-02-23 10:54:28 +00:00
Dave Pearson
af3c5f15c6
Ensure that toggle buttons are width auto
2023-02-23 10:54:09 +00:00
Dave Pearson
ceade8a242
Ensure we're only working with the first line of the label
2023-02-23 10:17:18 +00:00
Dave Pearson
73cb4c5ec2
Turn off wrapping and add ellipsis to the overall widget
2023-02-23 10:13:08 +00:00
Dave Pearson
46018c3d40
Add missing import
2023-02-23 10:11:57 +00:00
Dave Pearson
2fbb64c27f
Add methods for getting the width and height of the widget
2023-02-23 10:09:03 +00:00
Dave Pearson
a32a9fa6af
Reduce the calls to Text when building the button
...
Found out that Text.assemble can take a collection of tuple of text and
style, which makes things a lot easier and needs less object construction.
2023-02-23 10:06:13 +00:00
Dave Pearson
177aae6902
Don't force a radio set to have at least one button on on start
...
It felt like the right thing to do, but it shouldn't be necessary. There are
times where someone may actually want to have a radio set with no buttons
pushed to start with.
2023-02-22 21:07:08 +00:00
Dave Pearson
789e0511d2
Don't react on initial set
2023-02-22 21:06:47 +00:00
Dave Pearson
1b2f5a15a3
Stop wrapping the spacer as Text
...
It's not needed. It has no style of its own. It's just a space.
2023-02-22 21:01:03 +00:00
Dave Pearson
91199fd6e9
Make the label available but read-only
...
This was originally going to be something that could be modified on the fly,
but it's been requested that this not be the case. So here I'm making the
actual label an internal and providing read-only access to it.
2023-02-22 20:55:20 +00:00
Dave Pearson
9dd66fcdcb
Tidy some documentation in the base toggle box class
2023-02-22 20:45:34 +00:00
Dave Pearson
e3cbaa8dca
Merge pull request #1862 from davep/textlog-docstring
...
Textlog docstring
2023-02-22 16:56:38 +00:00
Will McGugan
bf91805f1d
Merge pull request #1861 from Textualize/fix-text-log-refresh
...
Fix text log refreshing
2023-02-22 16:48:31 +00:00
Dave Pearson
d854cb81af
Add some reactive attribute docstrings to TextLog
...
A contribution to #1811 .
2023-02-22 16:35:31 +00:00
Will McGugan
40de64773e
superfluous refresh
2023-02-22 16:33:48 +00:00
Dave Pearson
7a0506a3a2
Add an __init__ docstring to TextLog
...
A contribution to #1811 .
2023-02-22 16:32:45 +00:00
Will McGugan
13b99edbb9
Simplify
2023-02-22 16:31:31 +00:00
Will McGugan
bf50e6a424
changelog
2023-02-22 16:29:15 +00:00
Dave Pearson
a18685c9c8
Fix a copy/paste-o in the TextLog reference entry
2023-02-22 16:28:23 +00:00
Will McGugan
019a0dde5b
Fix text log refreshing
2023-02-22 16:27:05 +00:00
Will McGugan
402ef0887d
Merge pull request #1860 from Textualize/cache-internals
...
Cache internals
2023-02-22 16:06:35 +00:00
Dave Pearson
18705b4d4e
Merge branch 'main' into toggle-boxen
2023-02-22 16:04:01 +00:00
Will McGugan
d410a7c2fa
Merge pull request #1854 from Textualize/css-fix-virtual-class
...
WIP Css fix virtual class
2023-02-22 16:01:48 +00:00
Will McGugan
497fff9135
typing
2023-02-22 16:00:41 +00:00
Will McGugan
07d728382d
fix test
2023-02-22 15:59:34 +00:00
Will McGugan
32eb6ee075
test fix
2023-02-22 15:47:28 +00:00
Dave Pearson
9f9fe6fe7c
Docstring tidy
2023-02-22 15:46:57 +00:00
Dave Pearson
967773f21e
More tidying of the button styles
2023-02-22 15:44:09 +00:00
Will McGugan
81e81f4f98
Cache internals
2023-02-22 15:39:00 +00:00
Dave Pearson
0358d7448f
Tweak the buttons in light mode
2023-02-22 15:32:42 +00:00
Dave Pearson
8bcee3f3ed
More style changing to the toggle buttons
...
This feels like it's close to the final styles.
2023-02-22 15:12:19 +00:00
Will McGugan
5686147909
comment
2023-02-22 14:33:23 +00:00
Will McGugan
3c9e89d778
snapshots
2023-02-22 14:21:25 +00:00
Will McGugan
c63cab728b
force pause
2023-02-22 14:08:54 +00:00
Will McGugan
5facb0a8a3
fix component refresh
2023-02-22 13:54:32 +00:00
Will McGugan
c2a2582c26
fixed oreder
2023-02-22 13:50:58 +00:00
Will McGugan
edd1c28b79
restore css bases
2023-02-22 13:41:05 +00:00
Will McGugan
801051b70b
garantee order
2023-02-22 13:32:49 +00:00