A question about a metacharacter

ajaksu ajaksu at gmail.com
Thu Mar 20 21:35:35 CET 2008


On Mar 20, 8:19 am, igbt <lun... at gmail.com> wrote:
> However, if you don't enter anything the
> script works but if you enter a dot (.) the script does not work.

Have you tried it with other non-metacharacter values?

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

Try adding this:
         else:
                 print sss, type(sss)

Good luck!
Daniel



More information about the Python-list mailing list