Commit Graph

3901 Commits

Author SHA1 Message Date
Dave Pearson
6f10c63bb0 Perform tests on all recorded tree events 2023-01-09 12:54:26 +00:00
Dave Pearson
9226e90a55 Give the existing node messages a common base class
All three do the same thing, so we may as well give them a common base;
especially given that we're about to go and add yet another message that'll
do the same thing again but only (because we need it to) differ in name.
2023-01-09 12:21:21 +00:00
Dave Pearson
34ff6bf260 Add some unit tests for Tree messages/event handling
I'm about to work on #1400 and it seems like a good idea to put some tests
in place first to ensure nothing gets disturbed.
2023-01-09 11:47:40 +00:00
Will McGugan
86e8738882 Merge pull request #1517 from Textualize/call-in-thread
Call from thread method
2023-01-09 02:47:50 -08:00
Will McGugan
73fcbdce2e Merge pull request #1524 from Textualize/scroll-optimization
Scroll optimization
2023-01-09 02:47:09 -08:00
Will McGugan
3ac98187f9 removed same_size 2023-01-09 10:41:04 +00:00
Dave Pearson
0e43bc7fe1 Merge pull request #1525 from davep/davep-devlog-looking-for-help
davep devlog blog post: So you're looking for a wee bit of Textual help...
2023-01-09 10:21:18 +00:00
Dave Pearson
0a190193d7 Link to GitHub and Discord early on
For the benefit of those who aren't there yet.
2023-01-09 10:16:52 +00:00
Dave Pearson
bd9d88fa4f Fix a typo 2023-01-09 10:10:29 +00:00
Dave Pearson
a1b4d53fb9 Update date
This hasn't been accepted/published yet so let's update the date.
2023-01-09 08:51:00 +00:00
Will McGugan
204f3e48ed optimization 2023-01-08 22:32:09 +00:00
Will McGugan
acb206046a simplify resized widgets 2023-01-08 22:19:48 +00:00
Dave Pearson
01ad0df17f Final tweaks to the "asking for help" blog post
It's not finished, it never will be, but it's good to go.
2023-01-08 21:10:50 +00:00
Dave Pearson
e12d1f8bbb Fleshing out the post a wee bit more
Needs whittling and rounding and stuff, perhaps, but I think I'm mostly
there. A post-dinner top-to-bottom read is in now in order before I finally
decide if I like it or not.
2023-01-08 17:51:32 +00:00
Will McGugan
ba3bda2c2c micro optimizations 2023-01-08 17:45:39 +00:00
Will McGugan
244b1e333c optimization 2023-01-08 17:30:11 +00:00
Will McGugan
958b6d1439 smoother animation with roundering 2023-01-08 16:53:06 +00:00
Will McGugan
80a33c074b more accurate optimization 2023-01-08 16:47:53 +00:00
Will McGugan
03a159e1c8 Remove timer import 2023-01-08 16:36:27 +00:00
Will McGugan
e8dc95351e comment, remove debug 2023-01-08 16:28:53 +00:00
Will McGugan
b13fc3d5b6 snapshot 2023-01-08 16:20:15 +00:00
Rodrigo Girão Serrão
b3495c6e92 Merge pull request #1509 from Textualize/fix-1508
Simplify Placeholder implementation
2023-01-08 11:19:29 +00:00
Dave Pearson
a3601cf0be Fix blog typo
The second of many, I'm sure.
2023-01-07 22:52:16 +00:00
Dave Pearson
a242d4b6c5 Fix blog typo
The first of many, I'm sure.
2023-01-07 22:50:35 +00:00
Dave Pearson
90d38cd0da WIP: devlog blog post about looking for help with Textual
Work in progress. First rough draft of ideas, committing and pushing to
remote as backup for the night.
2023-01-07 22:45:38 +00:00
Will McGugan
467953b1c4 Merge pull request #1503 from Textualize/cursor-blink-bug
Converting cell position to index
2023-01-07 07:43:32 -08:00
Will McGugan
702640fd2e Merge pull request #1514 from davep/blackify-isv-test
Run black over recent immutable sequence view tests
2023-01-07 07:43:14 -08:00
Will McGugan
9cad6fc846 Merge pull request #1513 from davep/blackify-tree-tests
Run black over recent Tree tests
2023-01-07 07:42:42 -08:00
Will McGugan
e11f563123 docstrings 2023-01-07 14:24:17 +00:00
Will McGugan
249c2f319f typing 2023-01-07 14:05:46 +00:00
Will McGugan
fd9c1de3e2 Call from thread method 2023-01-07 14:04:52 +00:00
Dave Pearson
779b10a0e8 Merge pull request #1314 from davep/refresh-community
Refresh community
2023-01-07 09:37:11 +00:00
Dave Pearson
b8500de1e9 Run black over recent immutable sequence view tests
Now that we're running black on tests...
2023-01-07 09:32:43 +00:00
Dave Pearson
ea8252cfcc Run black over recent Tree tests
Now that we're running black on tests...
2023-01-07 09:30:01 +00:00
Will McGugan
c7cb525a6a Merge pull request #1507 from Textualize/black-on-tests
run black on tests
2023-01-06 10:52:55 -08:00
Rodrigo Girão Serrão
93453af00e Update changelog. 2023-01-06 18:31:34 +00:00
Rodrigo Girão Serrão
d08699ff50 Update placeholder snapshot test.
Although there was no visual difference in the output, the snapshot tool was complaining because there are now less things to draw on the screen, thus the snapshots looked different. Hence, the placeholder snapshot needed to be updated.
2023-01-06 18:30:39 +00:00
Rodrigo Girão Serrão
0db3fa6701 Simplify Placeholder implementation.
Instead of creating a private widget that is the only child of 'Placeholder', that was inheriting from 'Container', simplify everything. 'Placeholder' now inherits directly from 'Widget' and it saves a dictionary with its renderables per variant, instead of deferring that to the child '_PlaceholderLabel'.
2023-01-06 18:25:01 +00:00
Darren Burns
3fe855296c Raise exception from index to cell position method 2023-01-06 16:34:57 +00:00
darrenburns
a133bd84de Ensure pretty traceback for error in Widget compose method (#1505)
* Ensure pretty traceback for error in Widget compose method

* Fail fast and pretty tracebacks for Widget compose errors
2023-01-06 16:28:34 +00:00
Will McGugan
597a8923e9 run black on tests 2023-01-06 15:32:04 +00:00
Dave Pearson
82dcf62122 Merge pull request #1495 from davep/tree-node-children-prop
Add read-only access to the children of a `TreeNode`
2023-01-06 15:17:39 +00:00
Will McGugan
c0fa19fa16 Merge pull request #1504 from Textualize/fix-mouse01-example
Fix mouse01 example background transparency
2023-01-06 06:55:00 -08:00
Darren Burns
387a045cff Fix mouse01 example background transparency 2023-01-06 14:32:23 +00:00
Darren Burns
c90e12a35b Remove unused import in test file 2023-01-06 13:59:52 +00:00
Darren Burns
433c86d4b9 Remove unused test file 2023-01-06 13:59:36 +00:00
Darren Burns
733b8934fe Merge branch 'main' of github.com:Textualize/textual into cursor-blink-bug 2023-01-06 13:57:08 +00:00
Darren Burns
1bd720ef0d Index to cell position 2023-01-06 13:55:48 +00:00
Dave Pearson
0217462398 Add support for star/stop values on index
See https://github.com/Textualize/textual/pull/1495#pullrequestreview-1238616797
2023-01-06 12:31:59 +00:00
Dave Pearson
395ed4b153 Correct docstring for the return type of index 2023-01-06 12:31:27 +00:00