mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 07:01:00 -05:00
* remove PyWidget and py-register-widget * refactor py-list as Plugin * add newline * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix eslint * handle case if src not supplied * move inside if * - Remove src attribute for py-list - Re-implement as a Python plugin - Remove pylist.py from examples directory - Remove PyListPlugin as one of the default ones * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move PyItem and PyList classes to the plugin * clean up PyListTemplate and PyItemTemplate from pyscript module * fix linting * use PyList instead of PyListTemplate instead * fix example for todo-pylist * re-enable and improve test * move py-list plugin to examples * fix py-list plugin link --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
12 lines
359 B
TypeScript
12 lines
359 B
TypeScript
import { InterpreterClient } from '../interpreter_client';
|
|
import type { PyScriptApp } from '../main';
|
|
import { make_PyRepl } from './pyrepl';
|
|
|
|
function createCustomElements(interpreter: InterpreterClient, app: PyScriptApp) {
|
|
const PyRepl = make_PyRepl(interpreter, app);
|
|
|
|
customElements.define('py-repl', PyRepl);
|
|
}
|
|
|
|
export { createCustomElements };
|