Chris Barker wrote:
> You've got some nice pointers, but to answer your question directly:
>
> About wxPython I read
> <
http://www.wiki.wxpython.org/ModelViewController/>
> This is a python-specific description/tutorial about the MVC-pattern.
> But it doesn't use wx-classes (except in the UI-layer).
>
> But I read about the Document/View Framework in wxWidgets
> <
http://docs.wxwidgets.org/trunk/overview_docview.html>
>
> The questions is, should I use the wx-way for MVC, or should I
> implement it myself like the first description in the wxPyWiki
> explained?
>
>
> I would go with using pure-python for everything except the UI layer.
>
> 1) It's a good rule of thumb to use the the python-way for thigns that
> are supported in both C++ wx and python itself.
>
> 2) One of the reasons to do MVC is to keep GUI-logic completely
> independent of the rest of the app, so that you could swap out another
> GUI, pure text API, Web API, etc. In that case, you don't want to be
> relying on anything from wx outside of the GUI itself.
>
> 3) IMHO, MVC "frameworks" don't really give you much over rolling your
> own, application-specific structure -- particularly in Python.
>
of that pattern. See wx.lib.docview and wx.lib.pydocview for a bit of
extra pythonification on top of docview. Personally the pattern has