Skip to content
Permalink
3b17b56c2e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (24 sloc) 1.14 KB
Option Explicit On
Imports System.Diagnostics
Imports System.Drawing
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim PythonInstalled As Boolean
Dim PythonVersion As String = GetPythonVersion(PythonInstalled)
If PythonInstalled = False Then
Dim ErrMsg As String = "Either you did not install Python, or Python is not added to PATH environment variable" & vbCrLf
ErrMsg &= "Would you like to install Python right now?" & vbCrLf & vbCrLf
ErrMsg &= "Select Yes to download and install Python." & vbCrLf
ErrMsg &= "Select No to locate Python on your own." & vbCrLf
ErrMsg &= "Select Cancel to quit this program."
Dim QueryResult As MsgBoxResult = MsgBox(ErrMsg, vbQuestion + vbYesNoCancel, "Python Error")
If QueryResult = vbYes Then
' Download and Install Python
Form2.Show()
ElseIf QueryResult = vbNo Then
ElseIf QueryResult = vbCancel Then
End
End If
End If
End Sub
End Class