User Tools

Site Tools


python_getstarted

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
python_getstarted [2017/12/30 17:42] – [Getting Started] g00r00python_getstarted [2018/01/01 14:36] g00r00
Line 16: Line 16:
  
  
 +----
 ==== Creating a Script ==== ==== Creating a Script ====
  
Line 53: Line 53:
   writeln("This is a test!")   writeln("This is a test!")
  
-Once this line has been added to the top, then the first of the script contains+Once this line has been added to the top, then the rest of the script contains
 your Python code.  A very simple first script that simply prints "Hello World" your Python code.  A very simple first script that simply prints "Hello World"
 to the user and then shows the pause prompt would look like this: to the user and then shows the pause prompt would look like this:
Line 62: Line 62:
   writeln("|PA")   writeln("|PA")
  
 +----
 ==== Executing a Python Script ==== ==== Executing a Python Script ====
  
Line 82: Line 83:
   Menu Command: GY (Execute Python Script)   Menu Command: GY (Execute Python Script)
           Data: testpython           Data: testpython
-          +
 The above example will execute "testpython.mpy" from the theme's script The above example will execute "testpython.mpy" from the theme's script
 directory if it exists.  If it is not found, then it will try to do the directory if it exists.  If it is not found, then it will try to do the
python_getstarted.txt · Last modified: 2023/01/20 02:28 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki