Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/y/py-ninja-HEAD/examples/multiple_devices_with_nodes.py   py-ninja(Download)
# a wrapper around the Watcher that adapts it to Nodes.
from ninja.api      import NinjaAPI
from ninja.nodes    import (
    AccelerometerNode,
    And,
    print 'post-tick', ticker.counter, '\n'
 
ticker = Ticker(temp_node, accel_node, post_tick=printPost)
ticker.addPreTick(printPre) # alternate way to add pre-/post-tick functions.
ticker.start()