Will McGugan
32c34d1e54
Merge pull request #591 from Textualize/table-caret
...
Add a cursor to table
2022-06-28 13:59:46 +01:00
Will McGugan
8c623f9385
comment data table
2022-06-28 11:15:40 +01:00
Will McGugan
209a842ec6
docstring
2022-06-28 11:08:26 +01:00
Will McGugan
2ac4c1edd2
Added _cells
2022-06-28 11:02:16 +01:00
Will McGugan
cec49dbbc2
optimize from_union add docstrings
2022-06-28 10:36:16 +01:00
Will McGugan
86fdc96ab3
geometry tests
2022-06-27 10:11:57 +01:00
Will McGugan
82358fdb7b
data table as widget
2022-06-25 14:55:19 +01:00
Will McGugan
4f02f17a38
more granular partial updates
2022-06-25 11:26:44 +01:00
Will McGugan
15039fa1ad
simplify
2022-06-24 16:09:54 +01:00
Will McGugan
03bfe10e69
inter-widget updates
2022-06-24 16:00:12 +01:00
Olivier Philippon
aa125928bb
Merge pull request #588 from Textualize/add-slight-animation-to-buttons-on-click
...
[button] Add a brief "active" effect when a button a clicked
2022-06-24 15:55:09 +01:00
Will McGugan
f06d2a3760
Merge pull request #587 from Textualize/tests-restore-layout-integration-tests
...
[tests] Restore layout integration tests
2022-06-24 15:50:49 +01:00
Olivier Philippon
c5285d3b48
[button] Add a brief "active" effect when a button a clicked
...
This effect is achieved by adding a `-active` class on the button instance when it's clicked, and removing it a few hundreds milliseconds later.
Our 4 default buttons types have default styles (background color is lightened) for this effect, with a transition to make it smoother.
How users can customise it:
- The visual impact of the `-active` class is pure CSS, and thus can simply be overridden with custom userland CSS
- The duration for which the `-active` class is added can be customised on each subclass of Button, or even at the Button instance level, by overriding the `ACTIVE_EFFECT_DURATION` property
2022-06-24 15:04:11 +01:00
Olivier Philippon
eb6370b167
[tests] Restore layout integration tests
...
These were broken-and-disabled in a previous PR because of 2 things:
- The Widgets' default vertical scrollbar size is now 2: this has to be reflected in these tests, in order to benefit from their "regressions spotting" role
- As long as textual#581 ("Default versus User CSS") is not solved, the Widget's default CSS overrides the custom Widgets' own CSS.
The test now temporarily uses a more specific CSS selector in order to bypass this.
2022-06-24 11:58:44 +01:00
Will McGugan
fa8885d674
refactored to translate_inside method
2022-06-22 13:54:28 +01:00
Will McGugan
e85438c9e6
renamed Region.origin to offset
2022-06-22 11:47:58 +01:00
Will McGugan
3451152993
cursor and hover
2022-06-22 11:03:04 +01:00
Will McGugan
b2ed540c50
keyboard control of cursor
2022-06-21 17:49:28 +01:00
Will McGugan
a9be6aa32a
Merge pull request #560 from Textualize/scroll-view
...
Scroll view and DataTable Widget
2022-06-21 14:41:09 +01:00
Will McGugan
b8e0143257
docstrings
2022-06-21 14:31:59 +01:00
Will McGugan
8378f507dd
Update docstring
2022-06-21 14:28:03 +01:00
Will McGugan
4f6a71bc33
annotations
2022-06-21 14:11:18 +01:00
Will McGugan
ad0507cb27
added some more tests
2022-06-21 14:07:27 +01:00
Will McGugan
637b916ce7
comment
2022-06-21 13:38:34 +01:00
Will McGugan
c3dcc529b3
docstring name change
2022-06-21 13:33:49 +01:00
Will McGugan
e73d8d0a76
docstrings
2022-06-21 13:33:36 +01:00
Will McGugan
f21b32e7b4
Update src/textual/widgets/_data_table.py
...
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
2022-06-21 13:31:23 +01:00
Will McGugan
98fcb1a4c8
Update src/textual/dom.py
...
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
2022-06-21 13:23:35 +01:00
Will McGugan
414bcca31d
comment
2022-06-21 13:22:40 +01:00
Will McGugan
83907930fc
update comment
2022-06-21 13:16:10 +01:00
Will McGugan
c0ba93ec93
name change
2022-06-21 13:13:56 +01:00
Will McGugan
9479dfb489
remove sandbox script
2022-06-21 13:08:38 +01:00
Will McGugan
4f8dba7225
Merge pull request #585 from Textualize/add-space
...
add space to keys
2022-06-21 11:54:33 +01:00
Will McGugan
306cf22d5c
add space to keys
2022-06-21 11:44:46 +01:00
Will McGugan
cc540809d2
fixed typing import
2022-06-21 11:39:49 +01:00
Will McGugan
695e03efca
uncomment
2022-06-21 11:21:57 +01:00
Will McGugan
c9591456ea
fix widgets import
2022-06-21 11:21:22 +01:00
Will McGugan
2630b7507d
update comment
2022-06-21 11:19:39 +01:00
Will McGugan
1ae2855f1f
broken merge
2022-06-21 11:17:20 +01:00
Will McGugan
74a93606ec
remove broken code
2022-06-21 11:16:50 +01:00
Will McGugan
a6e1fdb328
simplify
2022-06-21 11:09:05 +01:00
Will McGugan
9138c5fd2f
combined assigments
2022-06-21 11:08:03 +01:00
Will McGugan
a38ffd1bf5
modern typing in cache
2022-06-21 11:03:51 +01:00
Will McGugan
bbda4c3e0b
remove unaccurate comments
2022-06-21 10:54:10 +01:00
Will McGugan
2999626973
Merge branch 'css' into scroll-view
2022-06-21 10:33:29 +01:00
Will McGugan
c86bf797e8
remove broken alias
2022-06-21 10:32:39 +01:00
Will McGugan
50bc566c5d
Merge pull request #582 from Textualize/specificity-clash-order-fix
...
Tests around CSS specificity, and fix ordering in case of specificity clash
2022-06-21 10:28:10 +01:00
Will McGugan
7ea14a28b1
Merge pull request #584 from Textualize/lazy-load-widgets
...
[perf] Widget classes in `textual.widget.__init__.py` are now lazy-loaded
2022-06-21 10:27:08 +01:00
Will McGugan
9191d0e985
typing
2022-06-21 10:21:25 +01:00
Will McGugan
3857fa6887
comments
2022-06-21 10:17:31 +01:00