making a frame modal?

Okey dokey, I already have destructors on all the frames that expunge
resources from the sqlalchemy sessions so would that be a good place to
to do that?

Thanks Robin. BTW, kudos on the book, it's really well written and I
especially like the mix of reference and how-to-write-a-gui-right!

Thanks
Iain

···

On Mon, 2008-14-04 at 19:25 -0700, Robin Dunn wrote:

iain duncan wrote:
> Before I start doing anything stupid with my event bindings, is there an
> easy way to make an arbitrary frame modal, ie block out *all* other use
> of the app until it is dismissed? The frames in question are all custom
> classes that inherit from wx.Frame.

  theFrame.MakeModal(True)

You'll need to do a MakeModal(False) as the frame is closed (or before)
in order to (re)enable the other windows.