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

All Samples(70)  |  Call(23)  |  Derive(46)  |  Import(1)

src/d/r/dramatis-0.1.1/examples/auction.py   dramatis(Download)
class Auction ( dramatis.Actor ):
    def __init__(self, seller, min_bid, closing):
        self._seller = seller
        self._min_bid = min_bid
        self._closing = closing
CLOSING = time.time() + 4
 
seller = dramatis.Actor( object() )
auction = Auction( seller, MIN_BID, CLOSING )
 
class Client ( dramatis.Actor ):

src/d/r/dramatis-0.1.1/examples/im/single/chat/screen/wx.py   dramatis(Download)
    class Server( dramatis.Actor ):
 
        def __init__( self ):
            self.actor.always( "wx", True )
            self._wx = Screen.Server.App()
        class App ( dramatis.Actor, wx.App ):
 
            def run( self ):
                self.MainLoop()
 
    class Window ( dramatis.Actor ):
 
        def __init__( self, server, client, **options ):
            self._server = server
            self._client = client

src/d/r/dramatis-0.1.1/examples/pingpong/scala.py   dramatis(Download)
class Ping (dramatis.Actor):
 
    def __init__(self,times,pong):
        self.pings_left = times
        dramatis.release( pong ).ping( self )
class Pong (dramatis.Actor):
 
    def __init__(self):
        self.pong_count = 0
 

src/d/r/dramatis-0.1.1/examples/im/single/chat/server.py   dramatis(Download)
class Server( dramatis.Actor ):
 
    def __init__( self, password ):
        super(Server,self).__init__()
        self._password = password

src/d/r/dramatis-0.1.1/examples/im/single/chat/client.py   dramatis(Download)
class Client( dramatis.Actor ):
 
    def __init__( self, screen, server, password, group, user ):
        self._user = user
 

src/d/r/dramatis-0.1.1/examples/telephone/third/kid.py   dramatis(Download)
class Kid( dramatis.Actor ):
 
  def __init__(self, name, next_kid = None):
      super(Kid,self).__init__()
      self._name = name

src/d/r/dramatis-0.1.1/examples/telephone/sixth/kid.py   dramatis(Download)
class Kid( dramatis.Actor ):
 
  def __init__(self, name, next_kid = None):
      super(Kid,self).__init__()
      self._name = name

src/d/r/dramatis-0.1.1/examples/telephone/seventh/kid.py   dramatis(Download)
class Kid( dramatis.Actor ):
 
  def __init__(self, name, next_kid = None):
      super(Kid,self).__init__()
      self._name = name

src/d/r/dramatis-0.1.1/examples/telephone/second/kid.py   dramatis(Download)
class Kid( dramatis.Actor ):
 
  def __init__(self, name, next_kid = None):
      super(Kid,self).__init__()
      self._name = name

src/d/r/dramatis-0.1.1/examples/telephone/fourth/kid.py   dramatis(Download)
class Kid( dramatis.Actor ):
 
  def __init__(self, name, next_kid = None):
      super(Kid,self).__init__()
      self._name = name

  1 | 2 | 3  Next