I am trying to learn to use the ControlP5 library in python mode. I am struggling with basic stuff as I have no experience in Java, and I can hardly find proper examples for the python mode.
For instance, when I try to run the following code, the program never goes trough the toogle event function:
add_library("controlP5") def setup(): global cp5 cp5=ControlP5(this) size(640,480) cp5.addToggle("toogle")\ .setPosition(10,10)\ .setSize(50,20)\ .setValue(True)\ .setMode(ControlP5.SWITCH)\ def draw(): background(0) ellipse (70,20,15,15) def toogle(): print 'a'
Can you help please?