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

All Samples(29)  |  Call(16)  |  Derive(0)  |  Import(13)

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/axon_only_example.py   kamaelia(Download)
 
import time, sys, Axon
from Axon.likefile import LikeFile, schedulerThread
 
schedulerThread().start()
# Unix's "rev" tool, implemented using likefile.
 
reverser = LikeFile(Reverser())
 
while True:

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/LikeTicker.py   kamaelia(Download)
# limitations under the License.
 
from Axon.likefile import LikeFile, schedulerThread
from Kamaelia.UI.Pygame.Ticker import Ticker
from Kamaelia.Chassis.Pipeline import Pipeline
bg = schedulerThread(slowmo=0.01).start()
 
ticker1 = LikeFile(Pipeline(
        Ticker(background_colour=(128,48,128),
            render_left = 1,
        )
    )
ticker2 = LikeFile(Pipeline( 
        Ticker(background_colour=(128,48,128),
            render_left = 1,
    )
 
ticker3 = LikeFile(Pipeline( 
        Ticker(background_colour=(128,48,128),
            render_left = 1,

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/simpleoggradioplayer.py   kamaelia(Download)
# limitations under the License.
 
from Axon.likefile import LikeFile, schedulerThread
from Kamaelia.Codec.Vorbis import VorbisDecode, AOAudioPlaybackAdaptor
from Kamaelia.Chassis.Pipeline import Pipeline
filename = "./snail.ogg"
 
playStream = LikeFile(Pipeline(VorbisDecode(), AOAudioPlaybackAdaptor()))
playStream.activate()
# set of components for playing the stream back.
 
host = "bbc.kamaelia.org"
port = 1500
 
client = LikeFile(TCPClient(host = host, port = port))

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/simpleoggdecoder.py   kamaelia(Download)
# limitations under the License.
 
from Axon.likefile import LikeFile, schedulerThread
from Kamaelia.Codec.Vorbis import VorbisDecode, AOAudioPlaybackAdaptor
from Kamaelia.Chassis.Pipeline import Pipeline
filename = "./snail.ogg"
 
playStream = LikeFile(Pipeline(VorbisDecode(), AOAudioPlaybackAdaptor()))
 
# Play the ogg data in the background

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/simplehttpclient.py   kamaelia(Download)
# limitations under the License.
 
from Axon.likefile import LikeFile, schedulerThread
from Kamaelia.Protocol.HTTP.HTTPClient import SimpleHTTPClient
background = schedulerThread().start()
p = LikeFile(SimpleHTTPClient())

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/mediumtcpclient.py   kamaelia(Download)
from Kamaelia.Protocol.EchoProtocol import EchoProtocol
from Kamaelia.Internet.TCPClient import TCPClient
from Axon.likefile import LikeFile, schedulerThread
import time
 
time.sleep(0.5)
 
echoClient = LikeFile(TCPClient(host = "localhost", port = PORT))
while True:
    echoClient.put(raw_input(">>> "))

src/k/a/kamaelia-HEAD/Sketches/PT/BouncingCatGame/lotsacats.py   kamaelia(Download)
#
 
from Axon.likefile import LikeFile, schedulerThread
import time, Axon, os, random, pygame, math, threading
from Sprites.BasicSprite import BasicSprite
        if args and int(args) > 1: count = int(args)
        for i in xrange(0, count):
            newcat = LikeFile(make_cat(*cat_args))
            newcat.activate()
            catlist.append(newcat)

src/k/a/kamaelia-HEAD/Sketches/PT/BouncingCatGame/likecat.py   kamaelia(Download)
# testing a sprite-based system with likefile parts.
 
from Axon.likefile import LikeFile, schedulerThread
import time, Axon
from Sprites.BasicSprite import BasicSprite
 
bg = schedulerThread(slowmo=0.01).start()
catmaker = LikeFile(catMaker())
catmaker.activate()