From 11975cdd71f0cfb0cf60eed60b9c3281136a580c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Wed, 27 Nov 2024 20:04:41 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8DPython=20Online?= =?UTF-8?q?=E6=9D=BF=E5=8D=A1=E4=B8=8B=E7=BB=98=E5=9B=BE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boards/default_src/python_pyodide/others/python-shell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/default_src/python_pyodide/others/python-shell.js b/boards/default_src/python_pyodide/others/python-shell.js index 42610961..9d5b137d 100644 --- a/boards/default_src/python_pyodide/others/python-shell.js +++ b/boards/default_src/python_pyodide/others/python-shell.js @@ -52,6 +52,8 @@ export default class PythonShell { this.loader = loader; this.kernel = kernel; + this.statusBarImage = StatusBarImage.init(); + this.statusBarFileSystem = StatusBarFileSystem.init(); this.pythonShell = new PythonShell(); this.pyodide = window.pyodide; this.interruptBuffer = new Uint8Array(new ArrayBuffer(1)); @@ -59,8 +61,6 @@ export default class PythonShell { this.kernelLoaded = true; this.$loader.remove(); this.$loader = null; - this.statusBarImage = StatusBarImage.init(); - this.statusBarFileSystem = StatusBarFileSystem.init(); } this.run = async function () {