how make the wx.Dialog is allways on top

hi i want know how put the wx.Dialog on front of the aplication and
dont leave make click in the window until close the Dialog

and how close the dialog pressing some button without create the bind
event
because i have the dialog in the def of another event

def OnAbout(self, event):
        dlg = wx.Dialog(self, -1, "About...")
        btn = wx.Button(dlg, 50, "OK", (160, 190))
        #can i apply
if btn is ok:
    dlg.Close()
       #something like that
        text = wx.StaticText(dlg, -1, "Version 1.0", (100, 89))
        dlg.Show()

Hi,

···

On Feb 7, 12:48 pm, iozk_Live <iozk...@gmail.com> wrote:

hi i want know how put the wx.Dialog on front of the aplication and
dont leave make click in the window until close the Dialog

and how close the dialog pressing some button without create the bind
event
because i have the dialog in the def of another event

def OnAbout(self, event):
dlg = wx.Dialog(self, -1, "About...")
btn = wx.Button(dlg, 50, "OK", (160, 190))
#can i apply
if btn is ok:
dlg.Close()
#something like that
text = wx.StaticText(dlg, -1, "Version 1.0", (100, 89))
dlg.Show()

You'll need to create the button with one of the special IDs, such as
wx.ID_OK. Then it will close without the bind.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/