Re: Displaying Values Retrieved from Database

Rich Shepard <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
On Sun, 3 Dec 2006, Robert Gravina wrote:

> You might be interested in the pages on the Model-View-Controller and
> Model-View-Presenter patterns in the wxPython wiki. The MVP page contains
> a nice example of a GUI for managing a list of albums.
> http://wiki.wxpython.org/index.cgi/wxPython_Patterns

Robert,

   I've read that page many times. It's too simple for me to see how to apply
the principles in my application.

> I've been using the MVP pattern in my app, and it works well - UI code in
> the View, behaviour in the Presenter, database related code in the Model
> and event-binding in the Interactor (the MVP pattern, or at least the
> implementation there, introduces an interactor object used to bind UI
> events to methods on the presenter). It's been great for things like
> getting a listctrl to display items in a list or dict by implementing
> Model classes which manage a dict and list with a common programming
> interface (I'm using Zope Interface, which also helps in making that
> interface "official").

   The use of the wx.lib.pubsub looks quite promising. I'll be working with
that to see if I can implement it properly.

Thanks,

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.