You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
async def on_mount(self) -> None:
self.item_table = self.query_one(ItemTable).focus()
self.description_static = self.query_one(Static)
await self.sync_items()
self.set_interval(10.0, self.fetch_items)
Thank you and sorry if this is a stupid question.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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