[wxPython] wxgrid question

Hi,

  What I do is create a new row and then add the data to the new row.

  for string in list:
    numRows = self.grid.GetNumberRows()
    self.grid.InsertRows()
    self.grid.SetCellValue(0, 0, string)

I know it's manual but it works.

Seth.

···

-----Original Message-----
From: Jake Tyler [mailto:jakes_97@yahoo.com]
Sent: Tuesday, April 10, 2001 10:36 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython] wxgrid question

I seek help.

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/

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users