public Form1() { InitializeComponent(); Text = "PyPad"; _pypad = new UcPyPad(); _pypad.ActiveWindow.SetVariable("HostForm", this); _pypad.Dock = DockStyle.Fill; Controls.Add(_pypad); Width = 800; Height = 600; _pypad.ActiveWindow. RunScript(""); }
private void InitDebuggerWindow() { try { var pypad = new UcPyPad(); pypad.ActiveWindow.SetVariable("Controller", this); pypad.ActiveWindow.SetVariable("Adapter", _adapter); _debuggerHostWindow = _adapter.CreateHostWindow(pypad, "IronPython Interactive", "E6AD7E34-34CA-47E7-95EE-7C05D4128580"); } catch (Exception e) { LogError("Error InitDebuggerWindow: " + e.Message); } }