Dave Pearson
64d9c60267
Revert experimental code
2023-05-17 11:26:33 +01:00
Rodrigo Girão Serrão
a058fe53eb
Make test clearer.
2023-05-17 11:15:56 +01:00
Dave Pearson
6876a041a4
More Windows thread oddness experimenting
2023-05-17 11:02:04 +01:00
Dave Pearson
80d00ce4bf
Logging and experimenting for Windows
2023-05-17 10:49:46 +01:00
Rodrigo Girão Serrão
dea133d357
Merge branch 'main' into auto-focus-improv
2023-05-17 10:28:54 +01:00
Rodrigo Girão Serrão
45686c8aca
Fix tests.
2023-05-17 10:27:57 +01:00
Rodrigo Girão Serrão
8399a31a46
Post ScreenResume to default screen.
...
When the default screen is first created it was not getting the event ScreenResume. All other screens receive a ScreenResume when first created and _all_ screens (the default one and custom screens) receive this event when they become the active screen again, so this was kind of an edge case that needed the event to be posted by hand.
Related comments: https://github.com/Textualize/textual/pull/2581\#issuecomment-1550231559
2023-05-17 10:09:52 +01:00
Rodrigo Girão Serrão
765c7ce037
Simplify auto focus code.
...
Related comments: https://github.com/Textualize/textual/pull/2581\#discussion_r1195595104 .
2023-05-17 10:01:01 +01:00
Dave Pearson
471ab159ca
Merge branch 'main' into multiselect
2023-05-17 09:21:12 +01:00
Will McGugan
c12fa0e4da
fix for dark switch ( #2585 )
2023-05-17 07:44:36 +01:00
Glenn McAllister
8753aa5ed0
Update poetry-core requirement ( #2572 )
...
Related issues: #2562
2023-05-16 21:36:24 +01:00
Will McGugan
53e765f7d6
Avoid docks when scrolling ( #2571 )
...
* handle docked layers
* handle scroll better
* snapshot update
* remove commented out code
* superflous
* dock gutter
* snapshit
* snapshit test
* changelog
* mistake
* docstrings
* changelog
* whitespace
* missing punctuation
* ofx docstring
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
---------
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-16 21:34:59 +01:00
Will McGugan
3a17a76233
Exit debug ( #2554 )
...
* show single error by default
* changelog
* show numbers of errors
* changelog
2023-05-16 21:34:34 +01:00
Will McGugan
abb7705ed0
wait for screen ( #2584 )
...
* wait for screen
* comments and changelog
* wait for screen after keys
* extra wait for animation
* comment
* comment
* docstring
2023-05-16 21:06:09 +01:00
Dave Pearson
e69e57d7c0
Remove unused import
...
Recent changes meant it wasn't needed any more.
2023-05-16 20:53:18 +01:00
Rodrigo Girão Serrão
634789ae93
Add tests to screen modes.
2023-05-16 17:40:09 +01:00
Dave Pearson
58f0d11a93
Change to a single loader thread with a queue
2023-05-16 16:41:36 +01:00
Dave Pearson
926c0a2b4f
Reset all DirectoryTree worker changes
...
After deciding
https://github.com/Textualize/textual/pull/2545#issuecomment-1547544057 it
makes more sense to roll back to the state of `main` than to try and get to
where I want to be from where we've decided we didn't want to be.
Can't get there from here, so let's go rogue-like on this PR...
2023-05-16 15:29:36 +01:00
Dave Pearson
804d85a2c9
Merge branch 'main' into directory-tree-work-in-worker
2023-05-16 15:16:31 +01:00
Dave Pearson
83e4be77db
Merge pull request #2567 from davep/issue/2557/select-update
...
Fix clearing an OptionList
2023-05-16 15:11:29 +01:00
Dave Pearson
1ebfe2f418
Update the snapshits
2023-05-16 14:38:11 +01:00
Dave Pearson
3d2e3d9092
Add a snapshot test for a rebuilt Select
...
This helps test the practical impact of the fix added for #2557 .
2023-05-16 14:34:18 +01:00
Will McGugan
faa67a8293
Screen docs ( #2579 )
...
* screen docs
* docstrings
* modal example
* docstring
* docstrings
* Apply suggestions from code review
Co-authored-by: Dave Pearson <davep@davep.org >
---------
Co-authored-by: Dave Pearson <davep@davep.org >
2023-05-16 13:44:06 +01:00
Dave Pearson
32fa259c94
Add a TODO comment to the effect that this is a temp fix
2023-05-16 13:38:08 +01:00
Dave Pearson
f12aeb00d2
Remove forced content tracking refresh in clear_options
...
While the fix for #2557 likely isn't *the* fix (see #2582 for some context
around that), it is a fix that works for now. As such, with the change,
there was a double attempt to refresh the content tracking in the clearing
of options in the OptionList, which shouldn't be necessary.
This removes that.
2023-05-16 13:33:57 +01:00
Rodrigo Girão Serrão
2d9a83e243
Merge pull request #2577 from Textualize/gh-actions
...
Update workflows.
2023-05-16 13:24:59 +01:00
Dave Pearson
dde3ad397f
Remove duplicated setting of height for Select ( #2576 )
2023-05-16 12:01:45 +01:00
Rodrigo Girão Serrão
a9a04dc37a
Run workflows when they are changed.
...
Related comments: https://github.com/Textualize/textual/pull/2577\#issuecomment-1549411724
2023-05-16 11:43:31 +01:00
Rodrigo Girão Serrão
4b22234b24
Merge branch 'main' into auto-focus-improv
2023-05-16 11:40:13 +01:00
Rodrigo Girão Serrão
a6ee867ee3
Fix tests.
2023-05-16 11:39:38 +01:00
Rodrigo Girão Serrão
41d11996e8
Merge pull request #2580 from Textualize/dismiss-top
...
Error when dismissing non-active screen.
2023-05-16 11:38:31 +01:00
Rodrigo Girão Serrão
93f4de918c
Fix circular import.
2023-05-16 11:30:14 +01:00
Rodrigo Girão Serrão
b592ac077a
AUTO_FOCUS targets first focusable widget.
...
Related issues: #2578 .
2023-05-16 11:27:24 +01:00
Rodrigo Girão Serrão
7a8d6920e8
Error when dismissing non-active screen.
...
Related issues: #2575 .
2023-05-16 11:14:54 +01:00
Rodrigo Girão Serrão
9b09b19e5f
Update workflows.
...
This caches the virtual environment so we don't have to download it every time (the cache can be cleared from the repository > Actions > Caches (on the left).
We also split black formatting into a separate workflow.
This means we can run black ONLY when *.py files are changed.
It also means all other testing jobs don't need to _also_ check formatting.
2023-05-16 10:18:30 +01:00
Will McGugan
6147c28dbf
arrange refactor ( #2569 )
...
* arrange refactor
* Apply suggestions from code review
Co-authored-by: Dave Pearson <davep@davep.org >
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
---------
Co-authored-by: Dave Pearson <davep@davep.org >
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-15 14:53:17 +01:00
Rodrigo Girão Serrão
1bba3973bf
Merge pull request #2568 from Textualize/empty-paste
...
Fix empty paste
2023-05-15 14:31:14 +01:00
Rodrigo Girão Serrão
720bd37bba
Consume event.
2023-05-15 14:22:16 +01:00
Rodrigo Girão Serrão
f02e2fcdd9
Short-circuit paste on empty text.
...
Related comments: https://github.com/Textualize/textual/pull/2568#discussion_r1193790630
2023-05-15 14:12:22 +01:00
Rodrigo Girão Serrão
81289c328a
Fix empty paste.
...
Related issues: #2563 .
2023-05-15 13:25:01 +01:00
Rodrigo Girão Serrão
fe7812d94d
Add regression test for #2563 .
2023-05-15 13:24:48 +01:00
Dave Pearson
aff9bcdf93
Fix clearing an OptionList
...
See #2557 , credit to Will:
https://github.com/Textualize/textual/issues/2557#issuecomment-1546883815
2023-05-15 11:30:26 +01:00
Dave Pearson
d296fc5f04
Allow for passing in a selection as a tuple
2023-05-15 11:11:04 +01:00
Rodrigo Girão Serrão
83618db642
Merge pull request #2527 from Textualize/auto-focus
...
Add `auto_focus` to screens
2023-05-15 11:04:15 +01:00
Rodrigo Girão Serrão
0b6e3b3040
Merge branch 'main' into auto-focus
2023-05-15 10:41:15 +01:00
Rodrigo Girão Serrão
4db54eac4b
Merge pull request #2530 from Textualize/move-child-no-op
...
Moving child before/after self is a no-op.
2023-05-15 10:39:57 +01:00
Rodrigo Girão Serrão
c967661699
Merge branch 'main' into move-child-no-op
2023-05-15 10:31:43 +01:00
Dave Pearson
258180c996
Add a selected flag to the Selection
2023-05-15 10:25:30 +01:00
Dave Pearson
8208388cf9
Allow for type unions under Python 3.7
2023-05-15 10:13:28 +01:00
Will McGugan
d266e3685f
snapshot update ( #2555 )
2023-05-12 18:57:53 +02:00