[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] again problem about LineEdit(thanks for Hollis)
From: "Soeren Fietzke" <sfiet () adams ! com>
Date: 2001-06-18 19:10:57
[Download RAW message or body]
> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic