[PyKDE] again problem about LineEdit(thanks for Hollis)

Soeren Fietzke sfiet at adams.com
Mon Jun 18 19:10:57 BST 2001

>         a=self.LineEdit1.text()
>         b="bbs.tsinghua.edu.cn"
>         print a==b   
> ## the   result is 0 ,that means a is not equal to b ,how
> #can I  make my intention into reality            

Note that "a" is a reference to a QString object, not a Python string.
The following should work as expected:
 print str(a)==b   


More information about the PyQt mailing list