21.01.2015 Views

wxPython in Action - 错误提示:发生了异常

wxPython in Action - 错误提示:发生了异常

wxPython in Action - 错误提示:发生了异常

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>wxPython</strong><br />

9<br />

<br />

wx.MessageDialog<br />

wx.MessageDialogOKyes/no<br />

yes/no<br />

dlg = wx.MessageDialog(None, ’Is this the coolest th<strong>in</strong>g ever!’,<br />

’MessageDialog’, wx.YES_NO | wx.ICON_QUESTION)<br />

result = dlg.ShowModal()<br />

dlg.Destroy()<br />

2.10<br />

wx.MessageDialog<br />

wx.MessageDialog(parent, message,<br />

caption=”Message box”,<br />

style=wx.OK | wx.CANCEL,<br />

pos=wx.DefaultPosition)<br />

<br />

parentNone<br />

message<br />

caption<br />

style<br />

pos<br />

46 / 565

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!