I have a power-shell GUI Application. Inside my application I call a python script. I want to display the output of the python script.
test.py prints "hello world"
$dog.Add_Click({FixIndefinite})
$Form.Controls.Add($dog)
function FixIndefinite {
try { $outputBox.text = "Welcome"
python .\test.py
}
catch {$outputBox.text = "`nOperation could not be completed"}
答案 0 :(得分:1)
$outputBox.text = python .\test.py