Python: Unable to set background when using vtkGraphLayoutView
If you look at: https://ajpmaclean.github.io/web-test/site/Cxx/Graphs/VisualizeGraph/ it is easy to set the background and window title. If you add:
graphLayoutView.GetRenderer().SetBackground(colors.GetColor3d('SaddleBrown').GetData())
graphLayoutView.GetRenderer().SetBackground2(colors.GetColor3d('Wheat').GetData())
graphLayoutView.GetRenderWindow().SetWindowName('VisualizeGraph')
after line 18 in https://ajpmaclean.github.io/web-test/site/Python/Graphs/VisualizeGraph/ this error message is returned: TypeError: SetBackground argument %Id: %V
.
As a side issue this code in VTKExamples has never been updated or run since 2017 when Bill created the site! I am going through the whole VTK examples site modernising the code, fixing bugs and improving some of the images!