def __init__(self):
    super(Window, self).__init__()
    self.setWindowTitle('pyFAST + PySide2')
    self.button = QPushButton('Restart FAST pipeline')
    self.view = fast.View()
    self.installEventFilter(wrapInstance(int(self.view.asQGLWidget()), QGLWidget))
    self.view.set2DMode()
    layout = QVBoxLayout()
    layout.addWidget(wrapInstance(int(self.view.asQGLWidget()), QGLWidget))
    layout.addWidget(self.button)
    self.setLayout(layout)
    self.button.clicked.connect(self.restartPipeline)
    self.resize(512, 512)
def __init__(self):
    super(Window, self).__init__()
    self.setWindowTitle('pyFAST + PySide2')
    self.button = QPushButton('Restart FAST pipeline')
    self.view = fast.View()
    self.installEventFilter(wrapInstance(int(self.view.asQGLWidget()), QGLWidget))
    self.view.set2DMode()
    layout = QVBoxLayout()
    layout.addWidget(wrapInstance(int(self.view.asQGLWidget()), QGLWidget))
    layout.addWidget(self.button)
    self.setLayout(layout)
    self.button.clicked.connect(self.restartPipeline)
    self.resize(512, 512)