Ticket #1069 (new defect)

Opened 1 year ago

Last modified 1 year ago

Modal dForm causes subtle bug

Reported by: paul Assigned to: somebody
Priority: major Milestone: 0.8.3
Component: ui Version: 0.9.x
Keywords: Cc:

Description (Last modified by paul)

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.

Change History

05/25/2007 10:05:05 AM changed by paul

  • description changed.