mirror of
https://github.com/blueedgetechno/windows11
synced 2026-11-26 17:28:19 +08:00
BrythonRunner problem solved Authored-by: andrewstech <info@andrewstech.me> Co-authored-by: Lukas Batema <lukasbatema@gmail.com>
31 lines
757 B
JavaScript
31 lines
757 B
JavaScript
console.log('%cWin11React is a project by blueedgetechno and ascended by andrewstech. If you wish to help out with this project, visit https://github.com/blueedgetechno/win11React', 'color: lightblue; font-size: x-large');
|
|
|
|
function removeWarning() {
|
|
document.body.dataset.force = true;
|
|
}
|
|
|
|
window.pythonRunner = new BrythonRunner({
|
|
stdout: {
|
|
write(content) {
|
|
window.pythonResult = content;
|
|
window.pythonErr = 0;
|
|
},
|
|
flush() {},
|
|
},
|
|
stderr: {
|
|
write(content) {
|
|
window.pythonResult = content;
|
|
window.pythonErr = 1;
|
|
},
|
|
flush() {},
|
|
},
|
|
stdin: {
|
|
async readline() {
|
|
var userInput = prompt();
|
|
console.log('Received StdIn: ' + userInput);
|
|
return userInput;
|
|
},
|
|
},
|
|
onInit() {}
|
|
});
|