Commit Graph

5321 Commits

Author SHA1 Message Date
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
Will McGugan
91fe34465c Wording 2023-02-15 11:25:57 +00:00
Will McGugan
10bd8b4366 remove debug 2023-02-15 11:24:19 +00:00
Dave Pearson
2379bb46e0 Add type annotation to the DataTable
Now that the new DataTable is merged in.
2023-02-15 11:22:58 +00:00
Will McGugan
6531901442 Added tip to post 2023-02-15 11:22:43 +00:00
Dave Pearson
3ccfb5370f Add Markdown and MarkdownViewer to the disabled property test 2023-02-15 11:16:23 +00:00
Will McGugan
2285e575ac version bump 2023-02-15 11:11:05 +00:00
Dave Pearson
4fe1e0f0c5 Merge branch 'main' into promote-disabled 2023-02-15 11:10:45 +00:00
Will McGugan
bde790c169 Merge branch 'main' into release0-11-0 2023-02-15 11:09:21 +00:00
Will McGugan
4f4f066ded Merge pull request #1799 from Textualize/datatable-fixed-column-cursor
DataTable - allow the cursor to enter fixed columns
2023-02-15 11:08:57 +00:00
Will McGugan
4f8a6f5398 Merge pull request #1798 from Textualize/datatable-fix-fixed-row-cursor
Fix calculation of fixed offset for datatable cursor
2023-02-15 11:08:24 +00:00
Will McGugan
235295e3b8 Merge pull request #1796 from davep/markdown-accept-path
Markdown accept path
2023-02-15 11:07:55 +00:00
Will McGugan
0aa16948e7 Merge pull request #1795 from davep/markdown-example-tweak
Allow the markdown example to be run outside of examples directory
2023-02-15 11:06:40 +00:00