Project #1
Design a "simple" interactive Python TryIt editor.
- allow the user to enter a few lines of Python code
in a window (10 lines?)
- allow the user to edit the code
- allow the user to execute the code
- display the results in a separate window
Design using pencel and paper. For example:
- define/design large chunks of functionality
- edit window actions
- code execution actions
- results display actions
- loop creating smaller chunks until you know what you are going to code
- look and feel (windows buttons, etc.)
- program structure
- define libraries and code files
The examples below are very fancy.
Keep your editor simple.
(For example, no colored text.)
Note: There are many TryIt editors on the web.
Take a look to get inspired.
Project #2
Code the TryIt editor you designed in Project #1.
See PySimpleGUI
or PyQt.
Project #3
Now that you have a working TryIt editor,
modify it so other things could be "Tried Out".
In other words you enter some instructions
(commands?). Press "go" and something happens.
Existing TryIt Editors
Example #1
Example #2