<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                消息對話框即我們平時說的Messagebox,看看它的原型,下面是wxWidgets中的原型定義,C++風格,與python風格的區別就是wx前綴與后面名稱直接相連,例如wxMessageDialog,在wxpython中使用時就是wx.MessageDialog ?wxMessageDialog([wxWindow](http://www.cnblogs.com/dyx1024/admin/)*?parent,?const?[wxString](http://www.cnblogs.com/dyx1024/admin/)&?message,?const?[wxString](http://www.cnblogs.com/dyx1024/admin/)&?caption = "Message box",?long?style = wxOK | wxCANCEL,?const?[wxPoint](http://www.cnblogs.com/dyx1024/admin/)&?pos = wxDefaultPosition) 其各參數不多做介紹,主要看看ShowModal()方法,它使用應用程序在對話框關閉前不能響應其它窗口的用戶事件,返回一個整數,取值如下: wx.ID_YES, wx.ID_NO, wx.ID_CANCEL, wx.ID_OK。 另外,style的取值主要有以下幾種: | wxOK | Show an OK button. | |-----|-----| | wxCANCEL | Show a Cancel button. | | wxYES_NO | Show Yes and No buttons. | | wxYES_DEFAULT | Used with?wxYES_NO, makes?Yes?button the default - which is the default behaviour. | | wxNO_DEFAULT | Used with?wxYES_NO, makes?No?button the default. | | wxICON_EXCLAMATION | Shows an exclamation mark icon. | | wxICON_HAND | Shows an error icon. | | wxICON_ERROR | Shows an error icon - the same as wxICON_HAND. | | wxICON_QUESTION | Shows a question mark icon. | | wxICON_INFORMATION | Shows an information (i) icon. | | wxSTAY_ON_TOP | The message box stays on top of all other window, even those of the other applications (Windows only).? | 還是看一個例子: 代碼: ~~~ #!/usr/bin/env python # -*- coding: utf-8 -*- import wx class MyFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, u'測試面板Panel', size = (600, 300)) #創建面板 panel = wx.Panel(self) #在Panel上添加Button button = wx.Button(panel, label = u'關閉', pos = (150, 60), size = (100, 60)) #綁定單擊事件 self.Bind(wx.EVT_BUTTON, self.OnCloseMe, button) def OnCloseMe(self, event): dlg = wx.MessageDialog(None, u"消息對話框測試", u"標題信息", wx.YES_NO | wx.ICON_QUESTION) if dlg.ShowModal() == wx.ID_YES: self.Close(True) dlg.Destroy() if __name__ == '__main__': app = wx.PySimpleApp() frame = MyFrame(parent = None, id = -1) frame.Show() app.MainLoop() ~~~ 測試: ![](https://box.kancloud.cn/2016-06-08_5757935f205e6.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看