ONLINE PYGAME EXECUTION #99
-
Hey @pmp-p ,I studied the pygame-web final product of a pygame project and i understood that first there is a GET request to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To run arbitrary python code from javascript use Module.PyRun_SimpleString(code:str). ( coming from https://docs.python.org/3/c-api/veryhigh.html ) To run arbitrary python code from html use pygame-script, various samples here https://github.com/pygame-web/showroom/tree/main/pygame-scripts |
Beta Was this translation helpful? Give feedback.
To run arbitrary python code from javascript use Module.PyRun_SimpleString(code:str). ( coming from https://docs.python.org/3/c-api/veryhigh.html )
To run arbitrary python code from html use pygame-script, various samples here https://github.com/pygame-web/showroom/tree/main/pygame-scripts