예제 #1
0
 def message(self, text):
     self.interact(ask_ok(text),
                   default_handler=lambda *ignored: self.exit())
예제 #2
0
 def _messenger(*args, **kwargs):
     try:
         buddy.interact(ask_next(text.next()), next=_messenger)
     except StopIteration:
         buddy.interact(ask_ok(last_text), ok=lambda *_: buddy.exit())
예제 #3
0
 def message(self, text):
     self.interact(ask_ok(text), default_handler=lambda *ignored: self.exit())