嗨,我有一个子进程,我在我的代码调用这个子进程是Nasgro一个图形用户界面,我没有建立或代码知道我可以调用子进程没有问题,但我希望子进程执行一些功能,我不只是打开
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)
您可以在Pywinauto中编写一些东西来与GUI交互。他们有一些不错的examples你可以看看
相关问题 更多 >
编程相关推荐