Open-STEM / XRPCode

This is the repository for the full Python/Blockly IDE
GNU General Public License v3.0
0 stars 3 forks source link

Discuss and implement blocks solution #21

Closed fgrossman closed 1 year ago

fgrossman commented 1 year ago

Too many notes here, but....

  1. Do we store separate blocks and py files or embed the blocks in the py file?
  2. Do we have a mode where the file is either in blocks mode or py mode and don't let them go back?
  3. When in blocks mode we might have a view python code and a convert to python code. The view, give a RO py file. The convert the blocks go away and a py file is opened.
fgrossman commented 1 year ago

Brad and Frank discussed. Current throughts: 1 - We have just one file. If it is a .blocks file then it is python code with an embedded comment that is the encoded blockly 2 & 3 - For a blockly program we will have 2 buttons. 1 - View Python - This will open a RO python file 2- Convert to Python - This will put up a warning that this can not be reversed and if OK, then will create a .PY file with the same name and location and put the .blocks file in a /trash directory.

fgrossman commented 1 year ago

With View Python open it as a model dialog. This keeps everything from getting out of sync.

fgrossman commented 1 year ago

Convert to Python is done.