feat(board): python_pyodide板卡状态栏添加新tab 生命游戏

This commit is contained in:
王立帮
2025-10-14 10:58:32 +08:00
parent b7d76c763e
commit be97f0d712
6 changed files with 354 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import { KernelLoader } from '@basthon/kernel-loader';
import StatusBarImage from './statusbar-image';
import StatusBarFileSystem from './statusbar-filesystem';
import StatusBarTool from './statusbar-tool';
import StatusBarGame from './statusbar-game';
import TeachableMachineApp from './teachableMachine/App.vue';
import LOADER_TEMPLATE from '../templates/html/loader.html';
@@ -63,6 +64,7 @@ export default class PythonShell {
this.statusBarTool = StatusBarTool.init();
const teachableMachineApp = createApp(TeachableMachineApp);
teachableMachineApp.mount(this.statusBarTool.getContent()[0]);
this.statusBarGame = StatusBarGame.init();
this.pythonShell = new PythonShell();
this.pyodide = window.pyodide;
this.interruptBuffer = new Uint8Array(new ArrayBuffer(1));