[wxPython] database + wxpython

First place, sorry for my English (is not my native language)

ta_lista is a list with the row headers and tc_lista is a list with cols
headers.

Now I send you a complete example that show how to fill a fixed size (rows x
cols) grid.
In this example use the menus File/Set Data and random values will fill the
grid.
<<ExampleGrid.py>>
Asuming you know the headers from the data you are geting from the database,
the matrix
is the result of cursor.fetchall (All the python db interfaces that I know
return a list of tuples).

cursor.execute("select *******")
matrix = cursor.fetchall()

You need to convert the matrix contents to string before passing it to the
SetData method.

Cristian

ยทยทยท

-----Original Message-----
From: b.j. krajenbrink [SMTP:b.krajenbrink@hccnet.nl]
Sent: Tuesday, April 10, 2001 10:04 AM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] database + wxpython

Thank you the demo-code for combining a database with a grid in the
wxpython-list.
I'm trying to run your code, but I don't understand how to make the
variables ta_lista and tc_lista from the contents of the database. Is it
possible to send some more code addressing this item.
I'm also struggling with the combination of the two.

Thanks in advance, Bauke Krajenbrink, Holland