Skip to content
Discussion options

You must be logged in to vote

There's a couple of things that are an issue in the code you post above. First off, you wouldn't use render to update a widget like that; the render method is generally used to provide the renderable value for widget that doesn't compose other widgets.

Second: you're trying to perform a CSS type query on a widget type that doesn't exist. You're looking for ParamView on itself, but a query looks at all of the descendants of a widget. On top of that, ParamView in your code is a Vertical, it isn't a DataTable, so the call to update_cell wouldn't work anyway.

If it helps, here's a small example of a table that gets updated every so often with a random value:

from random import randint, random

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@vigne-Sh
Comment options

@davep
Comment options

@TomJGooding
Comment options

@illeatmyhat
Comment options

Answer selected by davep
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants