def update(self): QVTKWidget2.update(self) #Refresh the content, works around a bug on OS X self.paintGL()