Python Qt Error
Esteban Manchado Velázquez
zoso en demiurgo.org
Mie Mayo 19 18:32:28 CEST 2004
On Wed, May 19, 2004 at 02:48:21PM +0000, fernando miguel villarroel noriel wrote:
> [...]
> Aqui va el script que hace uso de la clase Hola_Mundo, hola.py
>
> #/usr/bin/python2.3
> import qt
> import sys
>
> from interface import *
>
> def botonHola_clicked():
> widget_principal.TextEdit1.setText('Hola Pinguino')
>
>
> app=QApplicatin(sys.argv)
> QObject.connect(app,SIGNAL('lastWindowClosed()',app,SLOT('quit()')
^^^ ^^^
Tienes estos dos paréntesis sin cerrar.
> [...]
> Esto me lanza el siguiente error:
>
> fvillarroel en pc01:~$ emacs interface.py
> fvillarroel en pc01:~$ python hola.py
> File "hola.py", line 14
> Widget_principal=Hola_Mundo()
> ^
> SyntaxError: invalid syntax
> fvillarroel en pc01:~$
> [...]
Cuando un intérprete/compilador te da un error, normalmente es en la línea
que te dice.... o en la anterior.
Saludos,
--
EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es
¡Ayuda a extenderlo por la red en firmas, web o lo que sea!
Help spread it through the Net in signatures, webpages, whatever!
------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es
Más información sobre la lista de distribución Python-es