如何通过使用pyqt5单击按钮来调用其他python文件

时间:2019-05-08 18:27:45

标签: python user-interface pyqt5

我试图通过单击按钮来打开一个新的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

0 个答案:

没有答案