Download data/DWSIM.Controls.PythonConsoleControl/PythonConsolePad.cs from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.PythonConsoleControl/PythonConsolePad.cs
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.Controls.PythonConsoleControl/PythonConsolePad.cs
-
curl -L -o PythonConsolePad.cs https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.PythonConsoleControl/PythonConsolePad.cs
1.09 kB
| // Copyright (c) 2010 Joe Moorhouse | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using ICSharpCode.AvalonEdit; | |
| using System.Windows.Media; | |
| namespace PythonConsoleControl | |
| { | |
| public class PythonConsolePad | |
| { | |
| PythonTextEditor pythonTextEditor; | |
| TextEditor textEditor; | |
| PythonConsoleHost host; | |
| public PythonConsolePad() | |
| { | |
| textEditor = new TextEditor(); | |
| pythonTextEditor = new PythonTextEditor(textEditor); | |
| host = new PythonConsoleHost(pythonTextEditor); | |
| host.Run(); | |
| textEditor.FontFamily = new FontFamily("Consolas"); | |
| textEditor.FontSize = 14; | |
| } | |
| public TextEditor Control | |
| { | |
| get { return textEditor; } | |
| } | |
| public PythonConsoleHost Host | |
| { | |
| get { return host; } | |
| } | |
| public PythonConsole Console | |
| { | |
| get { return host.Console; } | |
| } | |
| public void Dispose() | |
| { | |
| host.Dispose(); | |
| } | |
| } | |
| } | |