Help makemodal()

Hi All,

I use these script:

class item_barangy(wxFrame):
    def __init__(self, parent):
        wxFrame.__init__(self, parent , -1, str(parent), size=(640,480))
        grid = testgrid(self)
        self.MakeModal(True)
        self.Show(1)

but after I close this class then I cannot close my main window, it's
hanging, and never get back to the parent, anyone can help me?

Thanks,

-iip-

iip wrote:

Hi All,

I use these script:

class item_barangy(wxFrame):
    def __init__(self, parent):
        wxFrame.__init__(self, parent , -1, str(parent), size=(640,480))
        grid = testgrid(self)
        self.MakeModal(True)
        self.Show(1)

Call self.MakeModal(False) before the window is destroyed. Doing it in a EVT_CLOSE handler would probably take care of it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thank you,

I already try to did that before you reply this, on it's WORK!!!

Thank you very much,

-iip-

--------------- Replied message --------------
The Bat! mailer ver 1.53d

···

----------------------------------------------
Date : Thursday, January 01, 2004

From : Robin Dunn <robin@alldunn.com>

To : wxPython-users@lists.wxwindows.org <wxPython-users@lists.wxwindows.org>
Subject : [wxPython-users] Help makemodal()
----------------------------------------------
iip wrote:

Hi All,

I use these script:

class item_barangy(wxFrame):
    def __init__(self, parent):
        wxFrame.__init__(self, parent , -1, str(parent), size=(640,480))
        grid = testgrid(self)
        self.MakeModal(True)
        self.Show(1)

Call self.MakeModal(False) before the window is destroyed. Doing it in
a EVT_CLOSE handler would probably take care of it.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

----------------------------------------------