[PyKDE] Re: Syntax error from pyuic on icons and Python 2.1
Curtis Taylor
curtis.taylor at supplysolution.com
Fri Nov 30 18:08:12 GMT 2001
Hi Victor,
You've indeed nailed the problem: remove the first pair of empty
brackets ('image0_data = [...'). Once you've done that, perhaps try
saving the file under another name, then bring it back into designer. (I
don't have much experience with designer; this works directly in the
interpreter for me.)
HTH,
Curtis
On Fri, 2001-11-30 at 03:00, pykde-admin at mats.gmd.de wrote:
> Subject: [PyKDE] Syntax error from pyuic on icons and Python 2.1
>
>
> Hi:
>
> Generating a ListView with an icon for an item, pyuic gives this:
>
> --
> from qt import *
>
> image0_data[] = [
> "17 17 42 1",
> "s c None",
> "# c None",
> "j c None",
> ". c None",
> "a c None",
> .....
> ]
> --
>
> But, running this on Python 2.1 gives an error:
>
> --
> File "formLista.py", line 11
> image0_data[] = [
> ^
> SyntaxError: invalid syntax
> --
>
> Removing the image0_data brackets does work.
>
> Greetings,
>
> --
> Víctor R. Ruiz
> rvr at infoastro.com
>
>
>
> --__--__--
>
> _______________________________________________
> PyKDE mailing list
> PyKDE at mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde
>
>
> End of PyKDE Digest
--
Curtis Taylor
SupplySolution, Inc.
911 Olive Street
Santa Barbara CA 93101
805.879.7264
PGP Fingerprint: 5A61 444C 71C2 8EAE 7268 A78A F41F A503 00A5 234D
?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20011130/ccd2ec64/attachment.bin
More information about the PyQt
mailing list