problems with tkinter updates

woooee woooee at
Tue Jan 24 12:50:20 EST 2012

if line is not None: probably does not work the way you expect.  You
might try
if line.strip():
Take a look at this quick example

test_lines = ["Number 1\n", "\n", ""]
for ctr, line in enumerate(test_lines):
    print ctr, line
    if line is not None:
         print "     not None"

More information about the Python-list mailing list