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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/k/a/kamaelia-HEAD/Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Audio/Mixer.py   kamaelia(Download)
    def main(self):
        output = None
        while 1:
            if self.dataReady("event"):
                self.recv("event")
                self.lastSendTime += self.period
                self.scheduleAbs("Send", self.lastSendTime + self.period)
            elif self.dataReady("control"):
                # TODO: Do stuff here
                self.recv("control")
            else:
                # Message came from one of the inboxes
                for i in range(self.channels):
                    if self.dataReady("in%i" % i):