我试图通过单击按钮来打开一个新的python脚本。但是,当我按下按钮时,GUI不会显示。
我尝试了几种方法。链接如下:
Open second window from main with pyqt5 and qt designer
Browse files to open and run using GUI python
PyQt button start another script from another file
主文件是Facial r:
'''
// Match clipping
self.sceneKitRenderer?.pointOfView?.camera?.zNear = 0.001
self.sceneKitRenderer?.pointOfView?.camera?.zFar = 1000
// Match projection
let projection = SCNMatrix4( frame.camera.projectionMatrix(for: .landscapeRight, viewportSize: viewportSize, zNear: 0.001, zFar: 1000))
self.sceneKitRenderer?.pointOfView?.camera?.projectionTransform = projection
// Match transform
self.sceneKitRenderer?.pointOfView?.simdTransform = frame.camera.transform