Mike Rooney's MVC example on wxPyWiki

Is Mike Rooney on this list?

In the code example by Mike Rooney at this link
http://wiki.wxpython.org/ModelViewController/

I'm trying to understand Mike's reasoning for passing the instance of
view1 to the constructor of the ChangerWidget.

self.view2 = ChangerWidget(self.view1)

Logically, it doesn't make sense (to me), passing None works fine and
makes it more straightforward since both Views are TLWs. Removing the
argument makes even better sense.

Does anyone have any opinions on this?

Maybe he just wanted self.view1 to be the "main" TLW, such that if the
user closed it then self.view2 would also automatically close. This
would make sense considering that view1 represents the current amount
of money--it wouldn't make sense to have a changer if there is no
money to change. Something like that.

Che

ยทยทยท

On Sat, Sep 11, 2010 at 12:03 AM, cappy2112 <cappy2112@gmail.com> wrote:

Is Mike Rooney on this list?

In the code example by Mike Rooney at this link
ModelViewController - wxPyWiki

I'm trying to understand Mike's reasoning for passing the instance of
view1 to the constructor of the ChangerWidget.

self.view2 = ChangerWidget(self.view1)

Logically, it doesn't make sense (to me), passing None works fine and
makes it more straightforward since both Views are TLWs. Removing the
argument makes even better sense.

Does anyone have any opinions on this?