Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

import core processing classes into sketch module

  • Loading branch information...
commit 15d674924a829c80924aa7ba299cc562e0ea345d 1 parent 6a27044
@jdf authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 runtime/src/jycessing/Runner.java
View
20 runtime/src/jycessing/Runner.java
@@ -245,6 +245,26 @@ public static void runSketch(final String[] args, final String sketchPath,
// For error messages
interp.getLocals().__setitem__("__file__", new PyString(sketchPath));
+ // import core Processing classes
+ interp.exec("from processing.core import PApplet");
+ interp.exec("from processing.core import PConstants");
+ interp.exec("from processing.core import PFont");
+ interp.exec("from processing.core import PGraphics");
+ interp.exec("from processing.core import PGraphics2D");
+ interp.exec("from processing.core import PGraphics3D");
+ interp.exec("from processing.core import PGraphicsJava2D");
+ interp.exec("from processing.core import PImage");
+ interp.exec("from processing.core import PLine");
+ interp.exec("from processing.core import PMatrix");
+ interp.exec("from processing.core import PMatrix2D");
+ interp.exec("from processing.core import PMatrix3D");
+ interp.exec("from processing.core import PPolygon");
+ interp.exec("from processing.core import PShape");
+ interp.exec("from processing.core import PShapeSVG");
+ interp.exec("from processing.core import PSmoothTriangle");
+ interp.exec("from processing.core import PStyle");
+ interp.exec("from processing.core import PTriangle");
+ interp.exec("from processing.core import PVector");
// Bind the sketch to a PApplet
final PAppletJythonDriver applet = new DriverImpl(
interp, sketchPath, sketchSource);
Please sign in to comment.
Something went wrong with that request. Please try again.