static wont update when using with Horizontal(): #6260
Replies: 1 comment
-
|
The issue is that Use the ID selector instead: async def on_mount(self) -> None:
self.item_table = self.query_one(ItemTable).focus()
self.description_static = self.query_one("#description", Static) # Use ID selector
await self.sync_items()
self.set_interval(10.0, self.fetch_items)The This is a common gotcha - when you wrap widgets in containers, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am a beginner coder and I’m running into an issue: the update method for updating a Static widget only works when I’m not using a Horizontal container. The text isn’t showing.
This works:
But this does not work:
This is the related code:
And this is my on_mount method:
Beta Was this translation helpful? Give feedback.
All reactions