Will McGugan
e46d75de12
Merge pull request #1875 from tlambert03/timer-docs
...
add units to timer docs
2023-02-24 15:31:29 +00:00
Talley Lambert
04c75cd2d9
add units to timer docs
2023-02-24 08:52:05 -05:00
Will McGugan
99a9b6aa91
changelog
2023-02-24 12:46:21 +00:00
Will McGugan
0924bb2ba4
Version bump
2023-02-24 12:45:49 +00:00
Will McGugan
96370b1fd8
Merge pull request #1873 from Textualize/screen-children-fix
...
fix walk children
2023-02-24 12:36:58 +00:00
Will McGugan
5f1ca95f8a
Merge pull request #1866 from Textualize/prevent-event
...
Add a "prevent" context manager
2023-02-24 12:36:46 +00:00
Will McGugan
825f21fe28
comments
2023-02-24 12:09:50 +00:00
Will McGugan
03ffcdab0f
Update src/textual/message_pump.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:05:24 +00:00
Will McGugan
a5f139b45e
Update src/textual/message_pump.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:04:08 +00:00
Will McGugan
15cd3ef5ed
Update src/textual/dom.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:03:16 +00:00
Will McGugan
884db9c39c
Update src/textual/dom.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:03:05 +00:00
Will McGugan
63438f170d
Update docs/examples/events/prevent.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:02:56 +00:00
Will McGugan
217956bbdf
Update docs/examples/events/prevent.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:02:46 +00:00
Will McGugan
0999114811
Update docs/guide/events.md
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:02:20 +00:00
Will McGugan
5a77e3493d
add test
2023-02-24 10:13:58 +00:00
Will McGugan
c5cb0100ff
fix walk children
2023-02-24 10:02:52 +00:00
Will McGugan
7c470fc5dd
Move prevent stack to contextvar
2023-02-24 08:44:40 +00:00
Dave Pearson
f0a6771533
Update the ChangeLog and the roadmap
2023-02-23 22:14:41 +00:00
Dave Pearson
24ce819867
Add snapshot tests for the toggle button examples
2023-02-23 22:05:47 +00:00
Dave Pearson
719c831e3b
Add some unit testing for RadioSet
2023-02-23 21:50:14 +00:00
Dave Pearson
8d726fba88
Ensure the pressed button index is correct in the message
...
At the time that we're raising RadioSet.Changed, we can't be sure that the
class updates and the like have finished post RadioButton.watch_value
happening; this means that the "public" route to getting the pressed index
could be wrong (or rather, not quite up to date yet).
Meanwhile, here, we know the button involved, so we go looking for its index
directly.
2023-02-23 21:47:32 +00:00
Will McGugan
d1d6f03b2d
microoptmization
2023-02-23 21:39:45 +00:00
Will McGugan
b2ab5b6886
docs
2023-02-23 21:36:33 +00:00
Dave Pearson
d341b8b1b8
Fix a couple of copy/paste-o docstrings
2023-02-23 21:30:06 +00:00
Will McGugan
3231b7a8b8
remove prevent from callback
2023-02-23 21:22:24 +00:00
Will McGugan
0894881950
simplify
2023-02-23 21:18:30 +00:00
Will McGugan
9579b9fd24
prevent API refinement
2023-02-23 21:15:05 +00:00
Dave Pearson
236266248d
Add CSS class tests for check boxes and radio buttons
2023-02-23 21:10:21 +00:00
Dave Pearson
7c6522e634
Add initial radio button tests
2023-02-23 21:07:39 +00:00
Will McGugan
2f104a5db4
pass prevented messages types in post
2023-02-23 17:41:13 +00:00
Dave Pearson
cfe7be3abe
Some initial Checkbox unit testing
...
Lots more to come.
2023-02-23 16:46:58 +00:00
Dave Pearson
05208567ee
Prevent the initial Changed event when initial value is True
2023-02-23 16:45:35 +00:00
Dave Pearson
837d56f47f
Provide a default label for the toggle buttons
...
If one isn't provided it'll be an empty string.
2023-02-23 16:09:24 +00:00
Will McGugan
fd13b33cce
prevent message stack
2023-02-23 16:05:11 +00:00
Dave Pearson
307b1789a1
Give radio button its own example code now
...
Still within a RadioSet, but this time only the code that uses RadioSet; not
the code that just uses strings.
2023-02-23 16:00:14 +00:00
Will McGugan
ba30e0dd66
set prevent
2023-02-23 15:34:02 +00:00
Dave Pearson
316faf9e45
Add width reference documentation for radio set
2023-02-23 15:31:32 +00:00
Will McGugan
c2ea074f4a
fix name
2023-02-23 15:28:11 +00:00
Will McGugan
fd9ce05305
prevent messages stack
2023-02-23 15:26:41 +00:00
Will McGugan
0f1251d0bf
pass prevent to messages
2023-02-23 15:22:40 +00:00
Dave Pearson
a821b2f8f6
Add width reference documentation for radio buttons
...
A large part of the code to go with this is to show off a radio set; I feel
it makes sense to use the same code for both bits of documentation given
that a radio button only really makes sense inside a radio set.
2023-02-23 15:14:25 +00:00
Dave Pearson
a3d50d90f6
Revert example code to composing the old way
...
We've not documented it yet so, until we do...
2023-02-23 15:09:45 +00:00
Dave Pearson
87bd610eec
Swap the checkbox example to the newer compose approach
2023-02-23 14:45:24 +00:00
Will McGugan
da9e28d4d6
Add example
2023-02-23 14:41:44 +00:00
Will McGugan
dc4421e76a
Merge pull request #1867 from davep/fix-switch-wording
...
Correct the wording of the description of `Switch.value`
2023-02-23 14:41:08 +00:00
Dave Pearson
01215a1fe8
Tweak the style of the box in the example for checkbox
2023-02-23 14:40:58 +00:00
Will McGugan
2ee61f95db
Docs
2023-02-23 14:37:47 +00:00
Dave Pearson
4f75a395d8
Fix copy/paste-o in the checkbox reference
2023-02-23 14:35:24 +00:00
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