I use wx.Yield to send the ping results to our text control in real time. But I get just the results until ping had finished running.
def pingIP(self, ip):
proc = subprocess.Popen("ping %s" % ip, shell=True,
stdout=subprocess.PIPE)
print
while True:
line = proc.stdout.readline()
wx.Yield()
if line.strip() == "":
pass
else:
print line.strip()
if not line: break
proc.wait()
I want to Print out multitask PING, TRACERT in WxPython same time Any advise? Thanks