[PyKDE] designer: passing an argument to a slot?

Baz Walter bazwal at ftml.net
Fri Nov 4 22:38:53 GMT 2005


On Tuesday 01 Nov 2005 23:40, Peter J. Bismuti wrote:
> This does not work.  It gives a name error saying that the global variable
> "value" is not defined.  How can you access the value of the argument?
>
> Thanks in advance.
>
> void Dialog::ScaleScrollBar_ValueChanged(int value)
> {
>   valueString = QString("value = %1\n").arg(value)
>   self.TextEdit.append(valueString)
> }
>

pyuic translates the argument names to (self,a0,a1,a2...etc)


So the "value" argument in your example should be accessible as "a0"

-- 
Baz Walter




More information about the PyQt mailing list