public override string ToString() { var sb = new StringBuilder(); sb.AppendLine(base.ToString()); sb.Append(PythonNet.ToString()); return(sb.ToString()); }
public Form1() { InitializeComponent(); pythonNet = new PythonNet(); //Add these .NET types to scope to use in python code pythonNet.AddToScope("TitleLabel", TitleLabel); pythonNet.AddToScope("CodingText", CodingText); pythonNet.AddToScope("ExeFromFile", ExeFromFile); pythonNet.AddToScope("ExeFromCode", ExeFromCode); }