Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Basic Windows Form - Running Python script w/ button

Tags:

basic

I have a simple visual basic window (or 'form'), and at the click of a button on the form, I want my Python script to run. How would I go about this?

like image 531
just_a_programmer Avatar asked Dec 20 '22 16:12

just_a_programmer


1 Answers

You can do something like :

Dim ReturnValue

ReturnValue= Shell("C:\python23\python ""C:\Myscripts\Mypythonscript.py"" ", vbHide)
like image 117
JustGreat Avatar answered Mar 07 '23 01:03

JustGreat