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

List:       pykde
Subject:    [PyKDE] Syntax error from pyuic on icons and Python 2.1
From:       "=?iso-8859-1?q?V=EDctor=20R=2E?= Ruiz" <rvr () infoastro ! com>
Date:       2001-11-29 13:35:55
[Download RAW message or body]

  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


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

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