Re: [PyKDE] Custom signal/slot function

2005-06-19 Thread Diez B. Roggisch

Kevin Walzer wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I'm working on my first PyQt application, and to get a feel for signals
and slots, I'm trying to have my application echo the text entered into
a line edit widget to stdout. However, when I test this, what is printed
is "Not implemented yet," which tells me I'm doing something wrong.

Here is my ui.h code:

void form1::LaunchFoo()
{
~  # get the text typed in the line edit
~  e = self.lineEdit1.text().ascii()

~   #show output
~os.system('echo %s', e)
~}


I've also tried the simple statement "print %s, e", but I also get the
"not implemented yet" error.

Can anyone help point me in the right direction?


The ui.h file is of no use here AFAIK. What you do is to subclass your 
generated widget class and then override the slot method - that's all.


Diez

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] Custom signal/slot function

2005-06-19 Thread Kevin Walzer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I'm working on my first PyQt application, and to get a feel for signals
and slots, I'm trying to have my application echo the text entered into
a line edit widget to stdout. However, when I test this, what is printed
is "Not implemented yet," which tells me I'm doing something wrong.

Here is my ui.h code:

void form1::LaunchFoo()
{
~  # get the text typed in the line edit
~  e = self.lineEdit1.text().ascii()

~   #show output
~os.system('echo %s', e)
~}


I've also tried the simple statement "print %s, e", but I also get the
"not implemented yet" error.

Can anyone help point me in the right direction?

- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.kevin-walzer.com
http://www.smallbizmac.com.
mailto:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCtYw5JmdQs+6YVcoRAmi6AJ4qGukXDYwxWahSADAsnF43DTLOcACfbZp7
lsJrFuEGucVSz9jd3a93UP8=
=Z7G2
-END PGP SIGNATURE-

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde