Question dialog : MessageDialog « wxPython « Python Tutorial






Question dialog
import wx
class App(wx.App):
    def __init__(self, redirect=True, filename=None):
        wx.App.__init__(self, redirect, filename)
    
    def OnInit(self):
        dlg = wx.MessageDialog(None, 'Question!','MessageDialog', wx.YES_NO | wx.ICON_QUESTION)
        result = dlg.ShowModal()
        dlg.Destroy()
        return True

app = App(False, "output")
fred = app.MainLoop()








19.27.MessageDialog
19.27.1.Response from MessageDialogResponse from MessageDialog
19.27.2.Question dialogQuestion dialog