#1069: Modal dForm causes subtle bug
---------------------+------------------------------------------------------
  Reporter:  paul    |       Owner:  somebody
      Type:  defect  |      Status:  new     
  Priority:  major   |   Milestone:  0.9     
 Component:  ui      |     Version:  0.9.x   
Resolution:          |    Keywords:          
---------------------+------------------------------------------------------
Old description:

> See ticket #1035 for background.
>
> I believe we need to do some metaclass programming to solve this one. In
> the __init__ of dForm, we swap out __bases__ depending on whether the
> form is to be modal, and whether the form is to be SDI or MDI.
>
> I didn't realize it at the time, but this changes the __bases__ of
> running forms as well, but at some point Python resolves the __bases__
> again correctly. So, at this time I'm not sure how big a problem this is,
> but I've noticed it in a specific case: after I show and hide a modal
> form, I can see that my main modeless form's __mro__ contains wx.Dialog
> instead of wx.Frame.

New description:

 See ticket #1035 for background.

 I believe we need to do some metaclass programming to solve this one. In
 the __init__ of dForm, we swap out __bases__ depending on whether the form
 is to be modal, and whether the form is to be SDI or MDI.

 I didn't realize it at the time, but this changes the {{{__bases__}}} of
 running forms as well, but at some point Python resolves the
 {{{__bases__}}} again correctly. So, at this time I'm not sure how big a
 problem this is, but I've noticed it in a specific case: after I show and
 hide a modal form, I can see that my main modeless form's {{{__mro__}}}
 contains wx.Dialog instead of wx.Frame.

-- 
Ticket URL: <http://svn.dabodev.com/trac/dabo/ticket/1069#comment:1>
Dabo <http://svn.dabodev.com/trac/dabo>
Trac Page for Dabo


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to