Skip to content

dynamic update issues #80

Answered by jourdain
vpaeder asked this question in Q&A
Jun 22, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
@asynchronous.task
async def refresh_function(**kwargs):
    res = 0
    while True:
        with state:
           print("Resolution: {}".format(res+3))
           cone_source.SetResolution(res+3)
           res = (res+1) % 20
           ctrl.view_update()
        await asyncio.sleep(0.5)

Replies: 1 comment 2 replies

Comment options

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

@vpaeder
Comment options

Answer selected by vpaeder
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