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

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

src/k/a/kamaelia-HEAD/Sketches/JMB/simplechat.py   kamaelia(Download)
 
        yield 1
        self.stop()
        print "You can hit Ctrl-C to shutdown all processes now." 
 

src/k/a/kamaelia-HEAD/Sketches/TG/weather.py   kamaelia(Download)
    def main(self):
        while True:
            if self.dataReady("control"): # handle shutdown
                self.stop()
            elif self.dataReady(): # handle data requests
    def main(self):
        while True:  # handle shutdown
            if self.dataReady("control"):
                self.send(self.recv("control"), "signal")
                self.stop()
            if 'quit' in s: # handle shutdown
                self.send("shutdown", "signal")
                self.stop()
            else: # format and send input query
                s = s.split()

src/k/a/kamaelia-HEAD/Sketches/TG/weather-mps.py   kamaelia(Download)
    def main(self):
        while True:  # handle shutdown
            if self.dataReady("control"):
                self.send(self.recv("control"), "signal")
                self.stop()
            if 'quit' in s: # handle shutdown
                self.send("shutdown", "signal")
                self.stop()
            else: # format and send input query
                s = s.split()