How to use the wx.ListCtrl widget with an SQLite 3 database

This example, originally written by Giuseppe Costanzi, demonstrates how to use the wx.ListCtrl* widget with an SQLite 3 database, including:

  • Create SQLite database
  • Insert records
  • Update records
  • Delete records
  • Sort records

*Note: If you are using a large database, a virtual list control is highly recommended.

This application is cross-platform compatible and has been successfully tested on the following operating systems:

  • Windows 10/11 | Python 3.11.9 |
    wxPython 4.2.3 | wxWidgets 3.2.6
  • Linux Mint 21 | Python 3.10.12 |
    wxPython 4.2.1 gtk3 | wxWidgets 3.2.2.1
  • MacOS Sequoia 15 | Python 3.12.4 |
    wxPython 4.2.2 | wxWidgets 3.2.6

Regards