'wxDbConnectInf' is not defined

Hi,

I don't think that all the ODBC stuff is available in wxPython.

You have to use on of the Python modules for this.

Check out this page:
http://www.python.org/topics/database/

See you
Werner

Echo wrote:

···

Hello,
I am trying to get a list of data sources. here is my code:

from wxPython.wx import *

def ODBCList():
   l =
   Dsn = ""
   DsDesc = ""
   dbci = wxDbConnectInf(NULL, "", "", "", "")
   while wxDbGetDataSource(dbci.GetHenv(), Dsn, SQL_MAX_DSN_LENGTH+1,
DsDesc, 255):
       l.Append(Dsn)
   return l

However, when I try to run it it says that 'wxDbConnectInf' is not
defined. Is there something else that I should import?