On 06/05/2012 04:49 PM, Simon Cropper wrote:
> Hi,
>
> After a year of travels, learning, testing packages, requests for help
> on various fora, I have returned again to this list as people keep
> saying try Dabo! try Dabo!
>
> I keep telling them I have tried Dabo but it can't be "bent" to my
> generic needs, that it is built on a well structured business model with
> clear structured way of getting things done. I tell them that the
> framework can be modified but the main developers recommend you use
> their classes, etc to ensure compatibility.
>
> I even point out that my correspondence with the developers indicate
> that no major development to the code is likely. Still they say Dabo! Dabo!
>
> So while trying to find some code to understand how wxGrid works in
> wxPython the same mantra permeated through my treads. {Try Dabo! Try
> Dabo!}.
>
> The main protagonist was John Fabiani who eventually offered up the
> invite "I hope you will revisit Dabo and ask me how to do things."
>
> Well I'm here. I am willing to be shown...
>
> So, I will throw up an apparently simple challenge. John, show me how I
> can open a simple sqlite table and present the data in a window/frame in
> an editable grid. Don't worry about the fluff, just the basic bones. The
> code should be able to be pointed at any sqlite table. In other words
> the grid is created and populated on the fly. In VFP parlance an
> editable "browse" window that supposedly could be pointed at any
> database table.
>
> For reference: Mike Driscol (Mouse vs Python) was kind enough to
> demonstrate the use of ObjectListView
> <http://pypi.python.org/pypi/ObjectListView> and wxPython to access an
> sqlite table, which looks promising
> (http://www.blog.pythonlibrary.org/2012/06/04/wxpython-and-sqlalchemy-loading-random-sqlite-databases-for-viewing/).
> This is a working example, and the first I have been provided, that
> demonstrates the use of a dynamic grid-like widget in wxPython that can
> be created on the fly.
>
I was wondering if you might come back - Welcome back!
First let's confirm that you are setup correctly. Please provide your
platform, python and wypython versions, along with the dabo version.
But in the mean time check this link - which is nothing more than the
grid test extracted from the dGrid.py code.
http://dabo.codepad.org/R3kRkf8t
Take note that the data is created in the code - but could be from any
database. I realize this is not what Mike provided but you should note
that the code is easier to read and it take less code to display the data.
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]