> 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 -- Soeren