Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to start without using the full BlockMirror class #22

Open
mklomp opened this issue Nov 26, 2020 · 1 comment
Open

Where to start without using the full BlockMirror class #22

mklomp opened this issue Nov 26, 2020 · 1 comment

Comments

@mklomp
Copy link

mklomp commented Nov 26, 2020

I am considering using BlockMirror in our project but we already have a full layout with Blockly and CodeMirror in it. So we don't need the BlockMirror div. Whta I am looking for is 'just' the function getBlocklyXMLFromPython(python_code) which accepts a full python scripts, and outputs the Blockly XML. Is there something similar in this code so I can only use that part?

@acbart
Copy link
Collaborator

acbart commented Nov 28, 2020

Glad to hear you are interested!

I believe the main file you need is text_to_blocks.js along with almost everything in src/ast/*.js and src/skulpt/*.js. You may want to trim things down a little, or alternatively you might just consider having everything available and then only importing the relevant parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants