Q:

wxProgressDialog like behaviour for a wxDialog

I want to create modal dialog but which shouldn't behave in a modal way i.e. control flow should continue
if i do
 dlg = wx.Dialog(parent)
 dlg.ShowModal()

 print "xxx"

 dlg.Destroy()

"xxx" will not get printed, but in case of progress dialog
dlg = wx.ProgressDialog.__init__(self,title, title, parent=parent, style=wx.PD_APP_MODAL)
print "xxx"

dlg.Destroy()

"xxx" will get printed
so basically i want to achieve wx.PD__APP__MODAL for a normal dialog?

A:

It was very trivial, just using wx.PD_APP_MODAL style in wx.Dialog allows it to be modal without stopping the program flow, only user input to app is blocked, i thought PD_APP_MODAL is only for progress dialog

