[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Re: Syntax error from pyuic on icons and Python 2.1
From:       Curtis Taylor <curtis.taylor () supplysolution ! com>
Date:       2001-11-30 18:08:12
[Download RAW message or body]


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@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@infoastro.com
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> PyKDE mailing list
> PyKDE@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

ˆ?

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic