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

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

src/k/a/kamaelia-HEAD/Sketches/JL/IRC/KambotIRC.py   kamaelia(Download)
            self.link((self.client, "outbox"), (self.irc, "inbox"))
 
            self.addChildren(self.lagger, self.irc, self.kambot, self.client, self.writer)
            yield Axon.Ipc.newComponent(*(self.children))
            while 1:

src/k/a/kamaelia-HEAD/Sketches/CE/Server.py   kamaelia(Download)
            self.link(source=(MyFileReader, "signal"), sink=(self, "_readFinished"), passthrough=0)
 
            self.addChildren(FileChooser, ImageGrabber, MyFileReader)
            return newComponent( FileChooser, ImageGrabber, MyFileReader )
         else:
            self.link(source=(MyFileReader, "signal"), sink=(self, "_readFinished"), passthrough=0)
 
            self.addChildren(FileChooser, MyFileReader)
            return newComponent( FileChooser, MyFileReader )             
 
 
                    myServer = SimpleServer(self.protocol, self.port)
                    self.addChildren(myServer)
                    return newComponent(myServer)
 
      elif self.demo_mode == False:
         myServer = SimpleServer(self.protocol, self.port)
         self.addChildren(myServer)
         return newComponent(myServer)
      return 1       

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/File/UnixProcess2.py   kamaelia(Download)
            self.link((STDIN,"signal"),(firstinpipe,"control"))
 
        self.addChildren(STDIN,STDOUT,STDERR)
 
        # GO!
            pipeshutdown=(PIPE,"signal")
 
            self.addChildren(PIPE)
 
            # give it a useful name (for debugging), and make it our child
                PIPE.inboxes["inbox"].setSize(self.boxsizes[inboxname])
 
            self.addChildren(PIPE)
 
            # give it a useful name (for debugging)

src/k/a/kamaelia-HEAD/Sketches/MH/MobileReframe/UnixProcess.py   kamaelia(Download)
            self.link((STDIN,"signal"),(firstinpipe,"control"))
 
        self.addChildren(STDIN,STDOUT,STDERR)
 
        # GO!
            pipeshutdown=(PIPE,"signal")
 
            self.addChildren(PIPE)
 
            # give it a useful name (for debugging), and make it our child
                PIPE.inboxes["inbox"].setSize(self.boxsizes[inboxname])
 
            self.addChildren(PIPE)
 
            # give it a useful name (for debugging)

src/k/a/kamaelia-HEAD/Sketches/CE/Display6nokia.py   kamaelia(Download)
      self.link(source=(myDisplay, "signal"), sink=(self, "_displayFinished"), passthrough=0)
 
      self.addChildren(myPacketCombiner, myFile, myDisplay)
      return newComponent(myPacketCombiner, myFile, myDisplay)
 
      self.display = ClientProtocolHandler(self.tempDir, self.requestmessage, self.delay, self.demo_mode)
 
      self.addChildren(self.client, self.display)
 
      self.link((self.client,"outbox"), (self.display,"inbox") )
                        self.requestmessage = ".txt"
                        self.client = Client(self.IP_toConnectTo, self.serverport, self.delay, self.requestmessage, self.tempDir, self.demo_mode)
                        self.addChildren(self.client)
                        return newComponent(self.client)
 
                        self.requestmessage = ".jpg"
                        self.client = Client(self.IP_toConnectTo, self.serverport, self.delay, self.requestmessage, self.tempDir, self.demo_mode)
                        self.addChildren(self.client)
                        return newComponent(self.client)
 
                        self.requestmessage = ".mpg"
                        self.client = Client(self.IP_toConnectTo, self.serverport, self.delay, self.requestmessage, self.tempDir, self.demo_mode)
                        self.addChildren(self.client)
                        return newComponent(self.client)
 

src/k/a/kamaelia-HEAD/Sketches/MPS/Axon.DSL/Axon/DSL/PassThrough.py   kamaelia(Download)
            self.passT   = PassThrough()
            self.dest   = ConsoleEchoer()
            self.addChildren(self.source, self.passT, self.dest)
 
            self.link((self.source, "outbox"),  (self.passT, "inbox"))

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Util/PassThrough.py   kamaelia(Download)
            self.passT   = PassThrough()
            self.dest   = ConsoleEchoer()
            self.addChildren(self.source, self.passT, self.dest)
 
            self.link((self.source, "outbox"),  (self.passT, "inbox"))

src/k/a/kamaelia-HEAD/Sketches/CE/PygameClient.py   kamaelia(Download)
      self.link(source=(myDisplay, "signal"), sink=(self, "_displayFinished"), passthrough=0)
 
      self.addChildren(myPacketCombiner, myFile, myDisplay)
      return newComponent(myPacketCombiner, myFile, myDisplay)
 
#         self.client = TCPClient.TCPClient(self.IP_toConnectTo,self.serverport, delay=1, initialsendmessage=self.requestmessage)
 
         self.addChildren(self.client, self.display)
 
         self.link((self.client,"outbox"), (self.display,"inbox") )

src/k/a/kamaelia-HEAD/Sketches/CE/XPlatformClient.py   kamaelia(Download)
      self.link(source=(myDisplay, "signal"), sink=(self, "_displayFinished"), passthrough=0)
 
      self.addChildren(myPacketCombiner, myFile, myDisplay)
      return newComponent(myPacketCombiner, myFile, myDisplay)
 
      def initialiseComponent(self):
 
         self.client = ThreadedTCPClient.ThreadedTCPClient(self.IP_toConnectTo,self.serverport, delay=1, initialsendmessage=self.requestmessage)
 
         self.addChildren(self.client, self.display)

src/k/a/Kamaelia-0.6.0/Kamaelia/File/UnixProcess2.py   Kamaelia(Download)
            self.link((STDIN,"signal"),(firstinpipe,"control"))
 
        self.addChildren(STDIN,STDOUT,STDERR)
 
        # GO!
            pipeshutdown=(PIPE,"signal")
 
            self.addChildren(PIPE)
 
            # give it a useful name (for debugging), and make it our child
                PIPE.inboxes["inbox"].setSize(self.boxsizes[inboxname])
 
            self.addChildren(PIPE)
 
            # give it a useful name (for debugging)

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next