From 15f35dc1c2eb50a8140f1a0abf45d5aa25fdf66b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 22 Sep 2015 11:33:43 +0200 Subject: Add support for execing the user's Python program --- web/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web') diff --git a/web/main.js b/web/main.js index 03e9dad..fb393c8 100644 --- a/web/main.js +++ b/web/main.js @@ -132,11 +132,21 @@ var guiHandlers = { sendDataToPython(message).then(session.send, session.end).done(); }, + 'python_exec': function actionPythonExec(session, message) { + logger.debug('Received python_exec from GUI'); + sendDataToPython(message).then(session.send, session.end).done(); + }, + 'python_push': function actionPythonPush(session, message) { logger.debug('Received python_push from GUI'); sendDataToPython(message).then(session.send, session.end).done(); }, + 'python_stop': function actionPythonStop(session, message) { + logger.debug('Received python_stop from GUI'); + sendDataToPython(message).then(session.send, session.end).done(); + }, + 'hint': function actionHint(session, message) { logger.debug('Received hint from GUI'); sendDataToPython(message).then(session.send, session.end).done(); -- cgit v1.2.1