示例#1
0
 def __init__(self, callback, finished = lambda : None,  text = "", words_per_minute = 300, words_per_chunk = 1):
     ThreadingActor.__init__(self)
     self.words_per_minute = words_per_minute
     self.words_per_chunk = words_per_chunk
     self.book = Book.create(text)
     self.callback = assure(str, _)(callback)
     self.finished = finished
示例#2
0
 def __init__(self, *args, **kwargs):
     ThreadingActor.__init__(self)
     self.frame = wx.Frame(*args, **kwargs)
     self.load_settings()
     self.make_menues()
     self.make_widgets()
     self.make_text_producers()
     self.running = False
 def __init__(self, *args, **kwargs):
     ThreadingActor.__init__(self)
     self.frame = wx.Frame(*args, **kwargs)
     self.load_settings()
     self.make_menues()
     self.make_widgets()
     self.make_text_producers()
     self.running = False
示例#4
0
 def __init__(self):
     ThreadingActor.__init__(self)
     self.infinite_loop_count = 0
     self.other_called = False
示例#5
0
文件: server.py 项目: nublic/Nublic
 def __init__(self):
     ThreadingActor.__init__(self)