private void RunScript(string name) { PythonEngine engine = new PythonEngine(); engine.SetVariable("window", mainWindow); engine.ExecuteFile(name); }