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

import threading
__author__ = 'Chris'
class MessageRouter(threading.Thread):
def __init__(self, textbox, process_to_route):
threading.Thread.__init__(self)
self.textbox = textbox
self.process = process_to_route
def run(self):
while True:
line = self.process.stdout.readline()
if not line:
break