[Tutor] Help with tkinter application.

alan.gauld@bt.com alan.gauld@bt.com
Wed, 16 Jan 2002 13:09:11 -0000


Looks OK but...

> class Spell:
> 	def __init__(self, word):
> 		if not word: return
> 		fin, fout =3D os.popen2('ispell -a')
> 		version =3D fout.readline() or "Ispell version unknown"

If fout.readline doesn't return anything then I suspect 
you have bigger problems than not knowing the Ispell version!
Maybe some more error handling would be a good idea there.

Also maybe its just me but it seems kind of back to 
front to *read* from fout and *write* to fin....

Alan g.