MCPcopy Create free account
hub / github.com/Tokeii0/VolatilityPro / run

Method run

QtGUI_run.py:84–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82
83 #执行命令 python volpro.py [imagename] (profile) (dumpfiles)
84 def run(self):
85 if self.ui.lineEdit.text() == "":
86 # 弹出错误提示
87 self.ui.lineEdit.setStyleSheet("border: 1px solid red;")
88 return
89
90 imagename = self.ui.lineEdit.text()
91 profile = self.ui.comboBox.currentText()
92 dumpfiles = self.ui.lineEdit_2.text()
93 if self.ui.lineEdit_2.text() == "":
94 command = f"python volpro.py {imagename} {profile}"
95 else:
96 dumpfiles = self.ui.lineEdit_2.text()
97 command = f"python volpro.py {imagename} {profile} dumpfiles {dumpfiles}"
98 subprocess.Popen(command, shell=True)
99
100 #self.close()
101 def run2(self):
102 if self.ui.lineEdit.text() == "":
103 # 弹出错误提示

Callers 2

run_commandFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected