database connection

Help
2010-12-29
2013-05-01
  • i want to connect to a sqlite3 database.  i've read the documentation on connecting to sqlite3, but i'm not sure where to place the code: in the Frame source or the App source.

    thank you,
    bob k.

     
  • In my view that belongs into App.py, e.g. a method like ConnectDb and call it from OnInit and then in your frame you can do something like wx.GetApp().dbSession to get to it.

    Werner

     
  • You might want to look at SqlAlchemy if you do db stuff.

    Werner

     
  • is there a component like a datagridview for displaying tables?