I am working on an MDI system for early building design. I have implemented a single (plan or top) view of the design process but I need my system to present the side views of the designer's work. This is so that heights can be manipulated or viewed (no 3D or rendered views... at least for now).
I have searched for projects in wxPython using MDI interfaces connected to a document that shows different views but so far have been unsuccessful.
I am relatively new to python and wxPython. Could you please tell me how I could create a document object and connect it to more than one wxWindow showing defferent views of the same document in an MDI interface?
If you can please cc ayour reply to me directly at keMen@illom.net
I am relatively new to python and wxPython. Could you please tell me how
I could create a document object and connect it to more than one
wxWindow showing defferent views of the same document in an MDI interface?
Think about it the other way around, the views should connect to the
document. Using something like the Observer pattern the views can register
themselves with the document and then when any change is made in the doc it
notifies all views that something has changed. When the views' Notify
method is called they get the pertinent data from the document and then
redraw themselves if needed.
Note: There is a Document/View framework in wxWindows but because of a few
technical issues it's not in wxPython yet. But since doing something like
the above is so easy in Python and takes care of most situations I havn't
worried about it too much.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!