Fix: 修复Python Online板卡下绘图错误

This commit is contained in:
王立帮
2024-11-27 20:04:41 +08:00
parent bac0e68cca
commit 11975cdd71

View File

@@ -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 () {