Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to update a chart without bringing the chart window into focus? #470

Open
jackroc97 opened this issue Oct 24, 2024 · 0 comments

Comments

@jackroc97
Copy link

Question

I have code that updates my chart with new data every 5 seconds. Each time the data updates, the chart window is brought into focus. I have not figured out a way to update the chart in the background. Is this possible?

Code example

# Some pseudocode to illustrate the issue
chart = Chart()
chart.set(...)
await chart.show_async()  # I have tried both synchronous and asynchronous with the same result

while True
   chart.update(...). # The chart will be brought into focus on the screen.
   sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant