Commit Graph

67 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
294213e0a1 Update radio_set_changed.py (#1947)
In the aftermath of #1935 and #1940 this fell through the cracks.
2023-03-06 12:04:22 +00:00
Dave Pearson
623b70d4ac Add an example of using a RadioSet.Changed message (#1935)
Unlike a few other widgets, the RadioSet is pretty much all about reacting
to the selection result; the question of how you go about it has already
come up and while the message is documented, complete with all properties,
it can't hurt to have an illustrative example of code that uses it.

Here I add an extra RadioSet example that sits with the message in the
reference. This should help the reader better follow how to use it, and also
gives something to link to if someone hasn't got that far into the
documentation yet but is attempting to use the RadioSet.
2023-03-06 10:53:12 +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
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
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
Dave Pearson
01215a1fe8 Tweak the style of the box in the example for checkbox 2023-02-23 14:40:58 +00:00
Dave Pearson
3fd3d272ce Add the widget reference for Checkbox 2023-02-23 14:26:11 +00:00
Will McGugan
0dac83668b Merge pull request #1791 from Textualize/textual-markdown
Textual markdown
2023-02-15 09:23:19 +00:00
Will McGugan
08c3a7214e No, I repeat, no abbreviations 2023-02-14 17:28:24 +00:00
Will McGugan
71d0017ef9 docs and refactor 2023-02-14 15:22:15 +00:00
darrenburns
bd73b1b007 Merge branch 'main' into datatable-cell-keys 2023-02-13 16:02:37 +00:00
Darren Burns
f4cd51e5e8 Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys 2023-02-09 15:55:45 +00:00
Dave Pearson
1956f7f9d7 Rename the switch--switch component class to switch--slider
Following on from #1751: originally Switch was called Checkbox and the
moving part was, for the component class, called a checkbox--switch; after
renaming the widget to Switch that component class ended up being
switch--switch; which wasn't ideal.

We decided to go with it as-is, but I just realised that internally the code
calls it a slider. So this leans into that and I'm renaming the component
class switch--slider. This removes the doubling-up of the name and also
makes the code more consistent.
2023-02-09 15:36:04 +00:00
Dave Pearson
decc1e2f3c Rename Checkbox to Switch
A new form of Checkbox will be arriving in Textual soon, working in
conjunction with a RadioButton. What was called Checkbox is perhaps a wee
bit heavyweight in terms of visual design, but is a style of widget that
should remain.

With this in mind we're renaming the current Checkbox to Switch. In all
other respects its workings remains the same, only the name has changed.

Things for people to watch out for:

- Imports will need to be updated.
- Queries will need to be updated; special attention will need to be paid to
  any queries that are string-based.
- CSS will need to be changed if any Checkbox styling is happening, or if
  any Checkbox component styles are being used.

See #1725 as the initial motivation and #1746 as the issue for this
particular change.
2023-02-09 11:10:30 +00:00
Darren Burns
0721d7fc87 Snapshot test for sorting 2023-02-08 10:39:04 +00:00
Darren Burns
802ea63ddb Default cell formatter fixes 2023-02-07 15:09:21 +00:00
Darren Burns
1acc36084b Add non-printable key to footer snapshot 2022-12-14 14:07:26 +00:00
Will McGugan
9aac3a0cca updated list view 2022-12-10 18:18:28 +00:00
Will McGugan
c76d616521 updated snapshot 2022-12-10 17:54:57 +00:00
Will McGugan
13a207bacc new blog post 2022-12-10 10:34:34 +00:00
Will McGugan
cebeafbb8b Merge branch 'main' into list-view 2022-12-09 10:09:07 +00:00
Will McGugan
69ed4b2e0b textlog documentation 2022-12-09 09:01:34 +00:00
Will McGugan
a6e64a38ee fix for snapshot 2022-12-07 16:58:26 +00:00
Rodrigo Girão Serrão
ba5ec6b34b Merge branch 'main' of https://github.com/Textualize/Textual into placeholder 2022-12-05 15:08:01 +00:00
Rodrigo Girão Serrão
9654748dd7 Update example and test files. 2022-11-25 18:23:24 +00:00
Darren Burns
eb8c078306 Merge branch 'main' of github.com:willmcgugan/textual into list-view 2022-11-23 11:03:40 +00:00
Darren Burns
be318949f8 Fix snapshot test 2022-11-21 17:10:16 +00:00
Darren Burns
c57f6b9025 Fix click handler 2022-11-21 16:42:53 +00:00
Darren Burns
eafb9eca8e Adding example for list itemm 2022-11-21 15:12:36 +00:00
Will McGugan
f7dade5a26 new tree control 2022-11-20 15:42:35 +00:00
Rodrigo Girão Serrão
54b85399e7 Merge branch 'main' into placeholder 2022-11-18 15:21:40 +00:00
Rodrigo Girão Serrão
a8c5d1abe4 Add docs for Placeholder. 2022-11-18 15:17:43 +00:00
Dave Pearson
8a6d21da5e Add the basics of Label docs for the manual 2022-11-17 10:15:35 +00:00
hfarooq
0963103db8 Fixed data_table example app - actually run it 2022-10-25 21:03:51 +00:00
Darren Burns
d02e6e94b0 Fix data-table snapshot 2022-10-24 15:16:47 +01:00
Darren Burns
041bb35014 Remove comments, simplify test 2022-10-24 14:51:40 +01:00
Darren Burns
f09e5f7d9f Snapshot testing footer 2022-10-24 12:39:33 +01:00
Darren Burns
67c3b83f80 Remove animation from checkbox snapshot test 2022-10-24 12:18:35 +01:00
Darren Burns
c6418e5e20 Snapshot testing data table, checkbox interactions 2022-10-24 12:14:52 +01:00
Dave Pearson
76e9654535 Merge pull request #958 from davep/toll-free
Review the use of the bell in various examples and documentation files
2022-10-19 15:56:21 +01:00
Dave Pearson
c4f920be67 Remove the bell from the Button documentation example 2022-10-19 15:15:53 +01:00
darrenburns
4a0dc49bca Checkbox polishing + fix auto-width in Horizontal layout (#942)
* checkbox widget

* fixes

* Checkbox additions, fix content width in horizontal layout

* Update docs, add tests for checkbox

* Remove some test code

* Small renaming of test class

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-10-18 15:17:44 +01:00
Will McGugan
994ced1648 table example 2022-10-06 11:13:48 +01:00
Darren Burns
ad610e61cd Example app showing input 2022-10-04 15:30:53 +01:00
Darren Burns
8225b43ac1 Document Static widget 2022-10-04 13:35:56 +01:00
Darren Burns
14af7be6fd Document Header widget 2022-10-04 11:43:30 +01:00