How can I load data from an SQL query into a grid
pretty much just like the one used in wxPython demo,
gridhugetable.
Let's say I've got Cust, Cust Address, Cust phone and
I use a query to pull this out of a MySQL database
with Python. After I've pulled out the three items
how do I feed them into a grid???
New to Python and extremely new to wxPython. Hope
someone can help.
Thanks much,
Jake
···
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
How can I load data from an SQL query into a grid
pretty much just like the one used in wxPython demo,
gridhugetable.
Let's say I've got Cust, Cust Address, Cust phone and
I use a query to pull this out of a MySQL database
with Python. After I've pulled out the three items
how do I feed them into a grid???
Just like in the sample, derive a class from wxPyGridTableBase that knows
how to get values from your tables when asked for an item for a specific row
and column. The Grid will ask for the data in a row,col when it needs to
display it. You'll want to be sure to cache the info as every time a cell
is refreshed the grid will ask for it again from the table.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!