Skip to content

Combining LocalView and RemoteView - issue after update #487

Answered by jourdain
juanprietob asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Which view local or remote?

The correct way to update any view (local or remote) is to call the html_view.update() method on them. Keep in mind you can use the controller to centralize those calls more easily.

with vtk_widgets.VtkRemoteView(rw_1) as view:
    ctrl.view_update.add(view.update)

with vtk_widgets.VtkLocalView(rw_2) as view:
    ctrl.view_update.add(view.update)

# update both views
ctrl.view_update()

Replies: 2 comments 2 replies

Comment options

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

@juanprietob
Comment options

Answer selected by juanprietob
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
2 participants