wxpython 2.7 简单消息对话框(是/否 ;ok)MessageDialog

#!/usr/bin/env python
#-*-coding:UTF-8 -*-

import wx

if __name__=='__main__':
    app=wx.PySimpleApp()
    frame=wx.MessageDialog(None,'Is this the coolest thing ever!',
                     'MessageDialog',wx.YES_NO or wx.ICON_QUESTION)
    result=frame.ShowModal()
    frame.Destroy()
    app.MainLoop()

 

wxpython 2.7 简单消息对话框(是/否 ;ok)MessageDialog_第1张图片

你可能感兴趣的:(wxpython 2.7 简单消息对话框(是/否 ;ok)MessageDialog)