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

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to