[PyKDE] A simple PyQt program
Michael Sparks
zathras at thwackety.com
Sun Jun 27 01:01:01 BST 2004
On Sat, 26 Jun 2004, Joshua wrote:
> Hi,
>
> TypeError: update() takes exactly 2 arguments (3 given)
...
> win2.update(self, command)
This has 3 arguments to the update command.
Your arguments are (win2, self, command) - the win2 is an implicit first
argument.
I haven't looked through your code much, since I suspect this is the bit
stumping you, but I suspect what you want is either:
win2.update(command)
self.update(command)
I suspect the former of the 2.
Michael.
More information about the PyQt
mailing list