As Ibraheem said, it's a namespace problem. At 17:01 2002-08-29 +0930, Guillermo Fernandez wrote: > def iffood(): This has to be def iffood(self): and the you need to pass "self" as a parameter when you call iffood. --=20 Magnus Lyck=E5, Thinkware AB =C4lvans v=E4g 99, SE-907 50 UME=C5 tel: 070-582 80 65, fax: 070-612 80 65 http://www.thinkware.se/ mailto:magnus@thinkware.se