Commit Graph

956 Commits

Author SHA1 Message Date
Will McGugan
0dac83668b Merge pull request #1791 from Textualize/textual-markdown
Textual markdown
2023-02-15 09:23:19 +00:00
Will McGugan
a94c725a3b tests and changelog 2023-02-14 15:26:27 +00:00
Darren Burns
4ec5d3f9db Migrate some DataTable tests from pilot.pause to wait_for_idle 2023-02-14 15:25:33 +00:00
Darren Burns
5cf1be1cbc Adding test for HeaderSelected event in DataTable 2023-02-14 15:16:22 +00:00
Darren Burns
df1116d776 Post an event when DataTable column header clicked 2023-02-14 15:01:02 +00:00
Darren Burns
92087784df Testing DataTable.get_column_at with invalid index 2023-02-14 13:28:48 +00:00
Darren Burns
3b7d24f9c0 Testing DataTable.get_column_at 2023-02-14 13:25:01 +00:00
Darren Burns
6d888af723 Testing DataTable.get_column with invalid column key 2023-02-14 13:22:07 +00:00
Darren Burns
af694ecb97 Testing DataTable.get_column 2023-02-14 13:18:19 +00:00
Darren Burns
fcdff48f0a Testing invalid index and keys in DataTable.get_row* 2023-02-14 12:47:49 +00:00
Darren Burns
8d22ad6ff9 Adding a test for DataTable.get_row_at 2023-02-14 11:52:03 +00:00
Darren Burns
c37061cf18 Adding an explanatory comment to a test 2023-02-14 11:45:27 +00:00
Darren Burns
091adc9d8e Testing get_row (by key) in DataTable 2023-02-14 11:44:35 +00:00
Darren Burns
8a6e44b010 Make DataTable.data private (it's now _data) 2023-02-14 11:00:43 +00:00
darrenburns
27503b15bf Merge branch 'main' into datatable-cell-keys 2023-02-14 10:27:24 +00:00
darrenburns
bd73b1b007 Merge branch 'main' into datatable-cell-keys 2023-02-13 16:02:37 +00:00
Will McGugan
4cdc139853 name fix 2023-02-13 15:12:02 +00:00
Will McGugan
6b5015b266 mass renaming 2023-02-13 15:09:40 +00:00
Darren Burns
12a58f838f Exception on duplicate row and column keys 2023-02-13 14:09:33 +00:00
Will McGugan
204c048e2b children_view test 2023-02-13 13:39:09 +00:00
Will McGugan
1ca9c5f481 remove text-backend 2023-02-10 09:13:35 +00:00
Darren Burns
84141630bc Some renaming of API methods 2023-02-09 16:20:17 +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
Darren Burns
64a805cb8d Merge branch 'main' of github.com:Textualize/textual into import-sorting-hook 2023-02-09 14:28:23 +00:00
Dave Pearson
c436b57ed5 Merge branch 'main' into checkbox-switch 2023-02-09 13:57:15 +00:00
Dave Pearson
f092e9f46c Reorder some imports 2023-02-09 13:50:38 +00:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
Will McGugan
f450d98e3e snapshot 2023-02-09 11:55:36 +00:00
Will McGugan
3a9c052d20 Added snapshot 2023-02-09 11:49:11 +00:00
Darren Burns
408ca2822d Make filter module public 2023-02-09 11:22:34 +00:00
Will McGugan
93acc27482 test for is_attached 2023-02-09 11:17:41 +00:00
Darren Burns
7ebc95fb54 Updating tests for DataTable 2023-02-09 11:16:14 +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
a6f382660c Fix imports in data table tests 2023-02-08 16:07:17 +00:00
Darren Burns
e4d2cde9cd Unit test to ensure column cursor events posted correctly 2023-02-08 14:20:28 +00:00
Darren Burns
6ffeb5cd8a Unit test to ensure event emission from row cursor correct in DataTable 2023-02-08 14:13:37 +00:00
Darren Burns
2fe73c0c28 Testing highlighted events via keyboard cursor movement 2023-02-08 14:01:42 +00:00
Darren Burns
64840daa0e PEP8 in tests for data table 2023-02-08 13:36:42 +00:00
Darren Burns
54a29dd664 Fix attribute error with emit being remove, check ordered_rows is correct after sort 2023-02-08 13:20:53 +00:00
Darren Burns
10c3deb9d2 Testing reverse sort 2023-02-08 12:49:59 +00:00
Darren Burns
0949211ab6 Unit testing for sorting method 2023-02-08 12:44:02 +00:00
Darren Burns
0721d7fc87 Snapshot test for sorting 2023-02-08 10:39:04 +00:00
Darren Burns
dca164d70f Update snapshots for datatable_render test 2023-02-08 09:54:33 +00:00
Darren Burns
6de6ed769e Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys 2023-02-07 13:40:51 +00:00
Darren Burns
3cf010ebe7 Testing to ensure the hover coordinate is updated 2023-02-07 11:23:02 +00:00
Darren Burns
0afcc8cd47 Add comment to a test 2023-02-07 11:09:51 +00:00
Darren Burns
3e451e8416 Testing that data inside DataTable events correct on click 2023-02-07 11:09:21 +00:00
Will McGugan
38140c564b imports 2023-02-07 10:54:29 +00:00
Darren Burns
76d2ff2999 Testing clicks in DataTable 2023-02-07 10:49:01 +00:00
Will McGugan
5930ebf82e remove _typing.py 2023-02-07 10:46:28 +00:00