Re: Displaying Values Retrieved from Database

Robert Gravina <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
>    While I don't know enough to fully implement the Model-View- 
> Controller
> pattern,

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

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").

Robert
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.