[PyKDE] Syntax error from pyuic on icons and Python 2.1

Víctor R. Ruiz rvr at infoastro.com
Thu Nov 29 13:35:55 GMT 2001


  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




More information about the PyQt mailing list