Commit Graph

4712 Commits

Author SHA1 Message Date
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
Rodrigo Girão Serrão
b86882ed0c Merge pull request #1742 from Textualize/rodrigogiraoserrao-patch-1
Update _data_table.py
2023-02-08 14:05:43 +00:00
Rodrigo Girão Serrão
aae2a8882a Update _data_table.py 2023-02-08 13:58:21 +00:00
Will McGugan
d67510e683 Merge pull request #1741 from davep/revert-old-blog-post
Revert retrofitting of example code in an old blog post
2023-02-08 13:49:05 +00:00
Dave Pearson
8d905b753d Revert retrofitting of example code in an old blog post
Makes sense to update all the docs to reflect the work done in #1738 but I
feel it doesn't quite make sense to retrofit this into an old blog post --
especially if the code it is referring to was like that at the time and
likely still will be for a wee while after this gets republished.
2023-02-08 13:39:24 +00:00
Will McGugan
1b050ea8b7 Merge pull request #1738 from Textualize/emit-start-with-self
Change emit to post to self.
2023-02-08 11:37:43 +00:00
Rodrigo Girão Serrão
c39b23f78d Final fixes. 2023-02-08 11:26:27 +00:00
Rodrigo Girão Serrão
e5e7c08afe Update docs accordingly. 2023-02-08 10:53:51 +00:00
Rodrigo Girão Serrão
bd719e057f Remove MessagePump.emit .emit_no_wait. 2023-02-08 10:39:53 +00:00
Will McGugan
1fd773f6ef Merge pull request #1737 from Textualize/typing-updates
typing fixes
2023-02-08 10:33:42 +00:00
Will McGugan
29875a66fc into [skip ci] 2023-02-08 10:31:35 +00:00
Will McGugan
aabc1cc898 fix typo [skip ci] 2023-02-08 10:20:47 +00:00
Will McGugan
a93ec81a2a extra space removed 2023-02-07 19:51:42 +00:00
Will McGugan
71b91521fc more trailing commas 2023-02-07 18:29:38 +00:00
Will McGugan
777a205bca trailing commans 2023-02-07 18:28:05 +00:00
Will McGugan
0a4d1c919d updated widgets docs 2023-02-07 18:10:01 +00:00
Rodrigo Girão Serrão
d3e66721e9 Change emit to post to self. 2023-02-07 17:59:57 +00:00
Will McGugan
484676c092 comment 2023-02-07 16:01:24 +00:00
Will McGugan
6d722fd291 Fix vkey 2023-02-07 15:55:57 +00:00
Will McGugan
6888120901 update msgpack types 2023-02-07 15:18:18 +00:00
Will McGugan
77b07042c0 typing fixes 2023-02-07 15:14:47 +00:00
Will McGugan
a6d7747f28 fix 5x5 2023-02-07 12:10:02 +00:00
Will McGugan
78c1059726 Merge pull request #1730 from Textualize/typing-update
Typing update
2023-02-07 12:08:43 +00:00
Will McGugan
f2d96e6e62 or None 2023-02-07 12:01:18 +00:00
Will McGugan
7e7367f8f6 simplify typing 2023-02-07 11:58:55 +00:00
Will McGugan
ad2f3697af fix imports 2023-02-07 11:29:24 +00:00
Will McGugan
6c4adea608 update Mypy 2023-02-07 11:25:36 +00:00
Will McGugan
84edd34fa6 typing extensions import 2023-02-07 10:56:04 +00:00
Will McGugan
38140c564b imports 2023-02-07 10:54:29 +00:00
Will McGugan
638d123cf2 poetry lock 2023-02-07 10:52:11 +00:00
Will McGugan
5930ebf82e remove _typing.py 2023-02-07 10:46:28 +00:00
Will McGugan
bcf382d2ff typing of Final 2023-02-07 09:06:08 +00:00
Will McGugan
af7fb9b02a Experiment 2023-02-06 18:01:41 +00:00
Will McGugan
29ba43af01 typealias import 2023-02-06 17:49:12 +00:00
Will McGugan
069ef11df8 Experiment 2023-02-06 17:44:29 +00:00
Will McGugan
fe793b348a remove print 2023-02-06 17:38:08 +00:00
Will McGugan
f803dd8265 type alias 2023-02-06 17:22:01 +00:00
Will McGugan
48124bdc0d fix finals 2023-02-06 17:17:02 +00:00
Will McGugan
fb7fd14262 Merge pull request #1710 from Textualize/line-api-docs
Documented the Line API
2023-02-06 11:42:57 +00:00
Will McGugan
f8577f79d7 review fixes 2023-02-06 11:34:37 +00:00
Will McGugan
b12c5e1cdf typo 2023-02-05 12:12:27 +01:00
Will McGugan
738837fd66 review update 2023-02-05 12:06:48 +01:00
Will McGugan
f56823a733 better diagram 2023-02-04 17:47:49 +01:00
Will McGugan
e81ac17c6c revised copy 2023-02-04 17:35:09 +01:00
Will McGugan
8540900d3b add test for extend_cell_length 2023-02-04 17:16:00 +01:00
Will McGugan
a05398378f diagram tweak 2023-02-04 16:24:40 +01:00
Will McGugan
dc1fce3da7 svg update 2023-02-04 16:13:42 +01:00
Will McGugan
59def1a591 test fix 2023-02-04 16:10:33 +01:00
Will McGugan
de2a4fd78d test fixes 2023-02-04 15:53:00 +01:00
Will McGugan
fb7c1642bc Checker example 4, docs and diagram 2023-02-04 15:40:36 +01:00