Commit Graph

5628 Commits

Author SHA1 Message Date
Will McGugan
80ae6ce4d9 Update task.md 2023-02-27 16:19:31 +00:00
Dave Pearson
0ee5323653 Merge pull request #1893 from davep/more-action-docs
Add a docstring to Input.action_submit
2023-02-27 16:09:16 +00:00
Dave Pearson
eb2b3fa4ea Add a docstring to Input.action_submit 2023-02-27 15:23:07 +00:00
Dave Pearson
9f77208fef Merge pull request #1872 from davep/toggle-boxen
Add `Checkbox`, `RadioButton` and `RadioSet`
2023-02-27 15:15:51 +00:00
Dave Pearson
df6f7bd8da Don't bubble up any Changed event when stopping all-off on radio set 2023-02-27 14:03:54 +00:00
Dave Pearson
d8ae11d646 Drop a vestigial cast 2023-02-27 13:53:09 +00:00
Dave Pearson
201ab4eb72 Move RadioSet.Changed near the top of the class
As requested in https://github.com/Textualize/textual/pull/1872#discussion_r1118627015

Personally my preference tends to run to having inner-classes defined close
to where they're used, but I can't think of a good reason not to do it this
way either.
2023-02-27 13:46:52 +00:00
Dave Pearson
47eb9f0064 Typo fix 2023-02-27 13:45:43 +00:00
Dave Pearson
dec9a77304 Fix a docstring typo
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-27 13:35:54 +00:00
Dave Pearson
b5c028c36d Fix a docstring typo
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-27 13:35:33 +00:00
Dave Pearson
9b6f1c4dcf Merge pull request #1890 from davep/tidy-tree-docstrings
Remove types from various docstrings in _tree.py
2023-02-27 12:28:50 +00:00
Dave Pearson
1198a4eaef Remove types from various docstrings in _tree.py 2023-02-27 11:32:24 +00:00
Dave Pearson
8c5fb38851 Merge branch 'main' into toggle-boxen 2023-02-27 10:31:06 +00:00
darrenburns
cbe2ab87c6 Datatable labelling rows (#1868)
* Renaming some component classes in DataTable

* Some more renaming of DataTable component classes

* Separate styling for fixed rows/columns from labels

* Highlight fixed rows/cols affected by colour differently

* Tweaking styles for fixed data in DataTable

* Update DataTable snapshots

* Add row label to Row metadata

* Wiring up some labelled row logic behind flags

* Renaming variable in DataTable

* Variable renaming in DataTable

* [no ci] Labelling rows progress

* Add RenderedRow abstraction to DataTable

* Computing label widths

* Use the Column object to represent row label column

* Ability to toggle row labels reactively

* Adjust width calculation for label widths

* Add DataTable.RowLabelSelected

* Posting the RowLabelClick message

* Hovering of row labels applies new style

* Remove a print

* Ensure horizontal scrolling with column cursor accounts for row label column

* Account for possible row labels in cell cursor horizontal scrolling

* Ensure cursor highlighting is correct on row label cells

* Document component class for DataTable label hover

* Test to ensure clicking row label emits correct event

* Add snapshot test for DataTable with fixed rows/cols and row labels

* Using pilot pause instead of wait_for_idle directly

* Update CHANGELOG

* Add a docstring

* Add a note to CHANGELOG.md about RowLabelSelected
2023-02-27 10:29:17 +00:00
Dave Pearson
7bfed019c9 Improve the wording of a test description 2023-02-27 10:08:45 +00:00
Dave Pearson
445e29ff26 Improve the wording of a test description 2023-02-27 10:07:59 +00:00
Dave Pearson
db9b9e1c5d Fix a typo 2023-02-27 10:07:25 +00:00
Dave Pearson
7f90e4e850 Add a test for adding multiple on buttons to a radioset 2023-02-27 10:06:50 +00:00
Dave Pearson
17bc19e5d3 Ensure multiple buttons can't be on on startup 2023-02-27 09:27:46 +00:00
Dave Pearson
6d0fc0489f Rework the layout of the checkbox example
Time to start to show off the new compose method.
2023-02-27 09:11:18 +00:00
Dave Pearson
23c0587efb Rework the layout of the radio button example
Time to start to show off the new compose method.
2023-02-27 09:10:10 +00:00
Dave Pearson
f436489efa Rework the layout of the radio set example
Time to start to show off the new compose method.
2023-02-27 09:08:40 +00:00
Dave Pearson
3de871f379 Use prevent to stop the Changed event on initial value setting 2023-02-27 09:03:17 +00:00
Dave Pearson
e6e46d0825 Merge branch 'main' into toggle-boxen 2023-02-27 08:53:30 +00:00
Will McGugan
f16f9c2a5c Merge pull request #1887 from Textualize/exceptions-from-mount
catch exceptions from post mount
2023-02-26 22:28:56 +00:00
Will McGugan
0d082eff0a Merge pull request #1885 from Textualize/compose-docs
Added docs for the new compose method
2023-02-26 22:28:34 +00:00
Will McGugan
8ba789367b catch exceptions from post mount 2023-02-26 16:54:29 +00:00
Will McGugan
5b1cba1d85 update to copy 2023-02-26 12:31:50 +00:00
Will McGugan
bc620fd46f remove highlighted line 2023-02-26 12:24:39 +00:00
Will McGugan
da1a820565 highlight lines 2023-02-26 12:08:18 +00:00
Will McGugan
b23fbd9be8 words 2023-02-26 10:36:17 +00:00
Will McGugan
9c1f6f7fad Added docs for the new compose method 2023-02-26 10:34:30 +00:00
Will McGugan
5c2cf2960e new syntax for calculator 2023-02-25 14:41:00 +00:00
Will McGugan
43849c3e8b Merge pull request #1880 from Textualize/batch-fix
batch update fix, and optimization
v0.12.1
2023-02-25 08:28:18 +00:00
Will McGugan
4e766887bc version bump 2023-02-25 08:19:08 +00:00
Will McGugan
8b17579ff4 changelog 2023-02-25 08:18:37 +00:00
Will McGugan
05bb10aed0 batch update fix, and optimization 2023-02-25 08:15:00 +00:00
Will McGugan
bd838c7f03 added hr to markdown example 2023-02-24 17:33:20 +00:00
Will McGugan
948b67938f Merge pull request #1876 from Textualize/blog-release-0120
new blog post
2023-02-24 17:28:35 +00:00
Will McGugan
461abc7fbe missing bracket 2023-02-24 17:19:55 +00:00
Will McGugan
33bbdf14a3 docstring 2023-02-24 17:12:29 +00:00
Will McGugan
01a4ed97e1 update blog 2023-02-24 17:12:29 +00:00
Will McGugan
e3976155fd Update docs/blog/posts/release0-12-0.md
Co-authored-by: Dave Pearson <davep@davep.org>
2023-02-24 17:12:14 +00:00
Will McGugan
8a5e5f29e0 Update docs/blog/posts/release0-12-0.md
Co-authored-by: Dave Pearson <davep@davep.org>
2023-02-24 17:12:04 +00:00
Will McGugan
661990f6e4 new blog post 2023-02-24 17:01:02 +00:00
Will McGugan
3c5ee42411 Merge pull request #1874 from Textualize/bump0.12.0
Bump0.12.0
v0.12.0
2023-02-24 15:32:24 +00:00
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