Beispiel #1
0
 internal static void BootstrapConsole(IronPythonConsoleControl console, Action <PythonConsole> initCallback = null)
 {
     // initialize when ready
     console.WithHost(host =>
     {
         ConfigureVariables(host.Console);
         CallInitializeScript(host.Console);
         if (initCallback != null)
         {
             initCallback(host.Console);
         }
     });
 }
        public new void PrepareWPF()
        {
            try {
                pc = new IronPythonConsoleControl();

                pc.Pad.Host.ConsoleCreated += Host_ConsoleCreated;

                WPF.Child = pc;

                pc.Loaded += Pc_Loaded;
            }
            catch (XamlParseException ex)
            {
                showInfo(ex.ToString());
            }
        }