jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Support the serial library #157

Closed jdf closed 8 years ago

jdf commented 8 years ago

The serial library appears to use method name introspection for callbacks. Consider adding the required callbacks to PAppletJythonDriver.

jdf commented 8 years ago

Pushed in 3008.

michelezaccagnini commented 8 years ago

I am having troubles receiving messages with the oscP5 library. from the Java example, I got this setup in python

from oscP5 import *
from netP5 import * 

def setup():
    size(400, 400)
    background(0)
    port1 = 12000
    oscP5 = OscP5(this, port1)
    loc = NetAddress('127.0.0.1', 12000)

def draw():pass 

def oscEvent(OscMessage):
   msg = OscMessage
   print "### received an osc message."
   print  " addrpattern: %s " % msg.addrPattern()
   print  " typetag:%s " % msg.typetag()

While sending messages works fine, for some reason this doesn't.

Can you help me to get the same treatment done for serialEvent() to oscEvent() callback?