Problem with Tk and Ping in Python

Posted by Shady on Stack Overflow See other posts from Stack Overflow or by Shady
Published on 2010-03-12T05:19:26Z Indexed on 2010/03/12 5:27 UTC
Read the original article Hit count: 544

Filed under:
|

I'm not being able to make this line work with Tk

import os
while(1):
    ping = os.popen('ping www.google.com -n 1')
    result = ping.readlines()
    msLine = result[-1].strip()
    print msLine.split(' = ')[-1]

I'm trying to create a label and text = msLine.split... but everything freezes

© Stack Overflow or respective owner

Related posts about python

Related posts about tk