Sub Process_Globals
Private py As PyBridge
End Sub
Sub AppStart (Args() As String)
Start
StartMessageLoop
End Sub
Private Sub Start
py.Initialize(Me, "py")
Dim opt As PyOptions = py.CreateOptions("Python/python/python.exe")
py.Start(opt)
Wait For Py_Connected (Success As Boolean)
If Success = False Then
LogError("Failed to start Python process.")
ExitApplication
End If
Dim np As PyWrapper = py.ImportModule("numpy")
Dim arr As PyWrapper = np.GetField("random").Run("rand").Arg(3).Arg(4)
arr.Print
End Sub