I changed self.out from wxTextCtrl to
self.out = wxListCtrl(panel, -1, wxDefaultPosition,
wxDefaultSize, style=wxLC_REPORT)
I can connect to mySQL and execute my command. The results are
obtained by
row = self.curs.fetchall()
My colums are created by
nrcol = len(row[0])
col_nr = 0
# Create columns
while col_nr < nrcol:
self.out.InsertColumn(col_nr, str(col_nr))
col_nr = col_nr+1
How do I write or print to self.out the contents of "row"?
···
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com