嗨,我有一个子流程,我在代码中调用该子流程是Nasgro一个我未构建的GUi或代码,知道我可以毫无问题地调用该子流程,但我希望该子流程为我执行一些功能,而不仅仅是打开
direction=QtGui.QFileDialog.getExistingDirectory(self,"Pick a folder")
#looking for the exe of eCRPR
for element in os.listdir(direction):
if element.endswith('nasgro90.exe'):
#creating a variable of name process and having type QProcess giving by Pyqt
process =QProcess(self)
# join the main path and the exe file so we can give it to subprocess.call
path2=''.join((direction,'\\',element))
#opining nasgro
process.start(path2)
这就是我所说的过程,并且GUI显示出来(参见图片)
我想要的是,当我调用该子流程时,他无需单击即可使用NASFLA(见图2)
最佳答案