Dave Pearson
5e3ed65395
Add a Checkbox-specific Changed message
2023-02-16 15:30:26 +00:00
Dave Pearson
a6389f15c2
Add a base changed message for toggle boxes
2023-02-16 15:29:47 +00:00
Dave Pearson
5c9ed14c4c
Add a reminder about handling a disabled keyword
2023-02-16 14:18:52 +00:00
Dave Pearson
ae7f1b49ad
Simplify the rendering
...
With an eye on applying component styles soon.
2023-02-16 14:17:15 +00:00
Will McGugan
35c07fc668
spatial map
2023-02-16 13:47:03 +00:00
Dave Pearson
d228483f22
Add a couple of extra type hints to reactives
...
Help reduce the warnings in IDEs and the like, especially when pylance/right
is in use.
2023-02-16 13:35:42 +00:00
Dave Pearson
121b0b837c
Merge branch 'promote-disabled' of github.com:davep/textual into promote-disabled
2023-02-16 13:15:47 +00:00
Dave Pearson
53fa0920af
Further simplify the en/disabled pseudo-class calculation
2023-02-16 13:13:43 +00:00
Will McGugan
ba6c8afac6
Merge pull request #1810 from Textualize/datatable-cache-fix-performance-improvement
...
DataTable - Actually use the offset cache.
2023-02-16 11:58:25 +00:00
Will McGugan
29bf387fdb
Merge pull request #1804 from davep/untab
...
Remove vestigial tabs widget
2023-02-16 11:57:48 +00:00
Will McGugan
c89645d809
Merge pull request #1809 from Textualize/datatable-clearing-cache-fix
...
DataTable - bug fix - Ensuring new caches cleared, location mapping reset when clear called
2023-02-16 11:57:20 +00:00
Darren Burns
a78563c184
Ensure adding rows updates update_count
2023-02-16 11:48:27 +00:00
Dave Pearson
7ba64c7199
Fix docstring typo
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-16 11:40:52 +00:00
Dave Pearson
3964a108ca
Add missing parameter to the Static docstring
2023-02-16 11:34:11 +00:00
Dave Pearson
47550a6acd
Allow placing the label before the button
2023-02-16 11:32:53 +00:00
Darren Burns
d34593d4d1
Update CHANGELOG
2023-02-16 11:17:57 +00:00
Darren Burns
e5f93d4f9a
Actually use the offset cache.
2023-02-16 11:15:36 +00:00
Dave Pearson
9dea934feb
Add some default styling to the toggle button classes
...
This won't be the final form, I feel this is a good point to start to think
about making standard styles for this sort of thing in Textual, but this
here helps me see what's going on.
2023-02-16 10:53:56 +00:00
Dave Pearson
c114c872f2
Add a placeholder docstring to the radio button
2023-02-16 10:45:24 +00:00
Dave Pearson
d4b61e2478
Give the Checkbox a docstring
...
This will need fleshing out more before a bit later on.
2023-02-16 10:44:14 +00:00
Dave Pearson
9053f73f52
Move Checkbox and RadioButton out into their own files
2023-02-16 10:41:22 +00:00
Darren Burns
b29afd9c7f
Update CHANGELOG.md
2023-02-16 10:29:27 +00:00
Darren Burns
921a65816e
Ensuring new caches cleared, location mapping reset when clear called
2023-02-16 10:27:56 +00:00
Dave Pearson
8762866b27
Fix comment typo
...
I typo.
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-16 10:16:56 +00:00
Dave Pearson
3d43d18486
Remove disabled from the rich repr of Button
...
It's not specific to Button now.
2023-02-16 10:12:46 +00:00
Dave Pearson
c35277aab7
Simplify how the styles are updated
...
See https://github.com/Textualize/textual/pull/1785#discussion_r1108210336
2023-02-16 10:07:18 +00:00
Dave Pearson
cd3e018eb6
Merge branch 'main' into promote-disabled
2023-02-16 09:52:30 +00:00
Dave Pearson
8dbc97553d
Shave a function call off get_pseudo_classes
...
See https://github.com/Textualize/textual/pull/1785#discussion_r1108208063
for the background.
2023-02-16 09:49:33 +00:00
Dave Pearson
279e2fc7b8
Improve the types of the parts that make up the renderable
2023-02-16 09:43:08 +00:00
Will McGugan
3d74f339c8
Merge pull request #1808 from davep/no-priority
...
Removed unused variable from _merge_bindings
2023-02-16 09:27:08 +00:00
Will McGugan
a6ff493cbc
Merge pull request #1803 from Textualize/datatable-scrollbar-show-header-refresh
...
Ensure scrollbars update when show_header toggles
2023-02-16 09:24:31 +00:00
Dave Pearson
de04be1f5c
Add a toggle method
...
Before this I had an action_toggle, which did the work, and also an on_click
which called on it. It seems a bit OTT to add a toggle method too, to then
especially make the other two methods call on this. But my thinking here is
that the developer will be more likely to go looking for a method to do the
toggle, and less likely to go looking for an action, etc.
Also this is more in keeping with the Switch widget's interface.
2023-02-16 08:52:35 +00:00
Dave Pearson
22a4772bb0
Add return information to the render docstring
2023-02-16 08:51:23 +00:00
Dave Pearson
9ca79d8b02
Removed unused variable from _merge_bindings
2023-02-16 08:47:11 +00:00
Dave Pearson
2ee1a24a83
Add a couple of missing types
2023-02-16 08:43:41 +00:00
Will McGugan
5ceccc53d2
profile
2023-02-15 18:21:48 +00:00
Dave Pearson
6982805922
Initial planning of the class hierarchy for toggle widgets
2023-02-15 17:09:33 +00:00
Dave Pearson
6f0a7541a4
Add a disabled keyword to DataTable
2023-02-15 14:13:50 +00:00
Dave Pearson
148f9c1543
Update the ChangeLog
2023-02-15 14:05:15 +00:00
Dave Pearson
ca1eede533
Merge branch 'main' into promote-disabled
2023-02-15 13:59:32 +00:00
Dave Pearson
25bd277aeb
Remove vestigial tabs widget
...
A hangover from the pre-CSS branch days; it will be back, better than ever!
2023-02-15 13:56:01 +00:00
Will McGugan
56b0214c6b
fix blog
2023-02-15 11:55:41 +00:00
Will McGugan
0dc6235042
update title
2023-02-15 11:53:00 +00:00
Dave Pearson
911582d89b
Merge branch 'main' into promote-disabled
2023-02-15 11:47:11 +00:00
Darren Burns
e9200a450f
Update CHANGELOG.md
2023-02-15 11:46:41 +00:00
Darren Burns
0455564f80
Ensure scrollbars update when show_header toggles
2023-02-15 11:41:26 +00:00
Will McGugan
a2d48cf7e0
Merge pull request #1800 from Textualize/release0-11-0
...
version bump, post, added --screenshot options to console run
v0.11.0
2023-02-15 11:35:53 +00:00
Will McGugan
a47bb56caa
fix changelog [skip ci]
2023-02-15 11:35:25 +00:00
Will McGugan
437a7b5523
changelog [skip ci]
2023-02-15 11:34:26 +00:00
Dave Pearson
d90cae3a92
Add Markdown and MarkdownViewer to the disabled snapshot test
2023-02-15 11:26:58 +00:00