Skip to content
Discussion options

You must be logged in to vote

You should find that the behaviour you're seeing is the same in any environment; not in some particular terminal or other. The issue here is that you're disabling the only focusable widget in your screen, so once doing that nothing has focus. When you set loading to False again focus won't be "stolen" (if there was more than one focusable widget on the screen you don't want focus pulled away from it just because the loading status of another widget has changed).

In your code here, you want to be adding data_table.focus() after you've set data_table.loading = False.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frankie567
Comment options

@davep
Comment options

Answer selected by frankie567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3910 on December 20, 2023 14:34.