[PyKDE] problem about LineEdit

Hollis hollis at austin.rr.com
Mon Jun 18 03:47:08 BST 2001


On Sunday 17 June 2001 21:30, wqh wrote:
> def my(self):
>        # from telnetlib import Telnet
>         self.LineEdit1.setText("bbs")
>         a=self.LineEdit1.maxLength
>         print a
>
> I want it print the context of the LineEdit1 ,But it said :
>         <built-in method maxLength of QLineEdit object at 0x81528c0>
>         What is the problem?

Maybe "a=self.LineEdit1.maxLength()" is what you meant.

-Hollis




More information about the PyQt mailing list