I am creating a simple script which is using gtk. In this script you
must enter a text, if you do not enter anything or you enter a dot,
the script will be finished. However, if you don't enter anything the
script works but if you enter a dot (.) the script does not work. I
was investigating about it and I think the problem is with the dot
character  sss == "." .  I was trying the same line with other
metacharacters like *, (, ) ...  and I found the same problem. I was
looking for an example where I could see the way I could do it without
any error but I did not find it. Could somebody tell me how can I
solve this error?



sss = entryName.get_text()      # The script gets the text
        if sss == "" or sss == ".":
                gtk.main_quit()        #The script finishes


Thanks ; -)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to