Update: 更新python_pyodide
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
"boardType": "Python 3 Online",
|
||||
"boardIndex": "./boards/default/python_pyodide/index.xml",
|
||||
"env": {
|
||||
"electron": false,
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": false,
|
||||
"webSocket": false
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -172,6 +172,9 @@ class PythonShell {
|
||||
run(code) {
|
||||
this.stop()
|
||||
.then(() => {
|
||||
if (code.indexOf('import turtle') !== -1) {
|
||||
code += '\nturtle.done()\n';
|
||||
}
|
||||
this.#statusBarsManager_.changeTo('output');
|
||||
this.#statusBarsManager_.show();
|
||||
this.#statusBarTerminal_.setValue(`${Msg.Lang['shell.running']}...\n`);
|
||||
|
||||
Reference in New Issue
Block a user