You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
361 B

  1. import threading
  2. __author__ = 'Chris'
  3. class MessageRouter(threading.Thread):
  4. def __init__(self, textbox, process_to_route):
  5. threading.Thread.__init__(self)
  6. self.textbox = textbox
  7. self.process = process_to_route
  8. def run(self):
  9. while True:
  10. line = self.process.stdout.readline()
  11. if not line:
  12. break