Date: Mon, 21 Jul 2003 14:29:20 -0500
> To: wxpython-users@lists.wxwindows.org
> From: "Greg Brunet" <gregbrunet@sempersoft.com>
> Subject: Database Table Browser
> Message-ID: <bfhesl$d9c$1@main.gmane.org>
>
> I've been looking for some sample code as a starting point for writing
> a browser for DB tables. I've read the
> http://wiki.wxpython.org/index.cgi/wxPyGridTableBase page and
> associated links, and have poked around to look for stuff, but haven't
> found any actual code. As a way to learn more about this stuff, I'd
> like to write something like any of a number of db browser type
> utilities using wxPython & the wxgrid, probably targeting PySQLite at
> first. Any idea of some simple code that actually hooks up a DB (of
> any variety - even Gadfly, since I expect the DB-API 2 layer to help
> keep things transparent)? Thanks,
>
> -- Greg
Take a look at the dbBrowser2 sample shipped with PythonCard (http://www.pythoncard.org/). It does exactly what you describe.
The original version (dbBrowser) was an exercise in dynamic widget placement and dbBrowser2 is a re-write using a wxGrid and wxPyGridTableBase.
Regards,
Andy
···
--
--------------------------------------------------------------------------------
From the desk of Andrew J Todd esq - http://www.halfcooked.com/