[dabo-users] Dabo! Everyone's answer to my question!

Author: Simon Cropper

Posted: 2012-06-05 at 18:49:28

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.

--

Cheers Simon

Simon Cropper - Open Content Creator / Website Administrator

Free and Open Source Software Workflow Guides

------------------------------------------------------------

Introduction http://www.fossworkflowguides.com

GIS Packages http://www.fossworkflowguides.com/gis

bash / Python http://www.fossworkflowguides.com/scripting

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: Dabo-users@leafe.com

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/4FCE9B08.1030606@fossworkflowguides.com

©2012 Simon Cropper