[PyKDE] designer: passing an argument to a slot?
david at boddie.org.uk
Fri Nov 4 18:59:03 GMT 2005
On Tue, 1 Nov 2005 15:40:37, 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)
I guess that this code is part of a .ui.h file that you're processing with
pyuic. What Python code is generated for this slot? Can you post it here
for us to take a look at?
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
More information about the PyQt