<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                最近自學wxPython,參考書籍為《wxPython in Action》,所以最近的一系列wxPython相關文章均為讀書筆記。 先來個簡單的wxPython程序熱熱身。 ??代碼: ~~~ #!/usr/bin/env python # -*- coding: utf-8 -*- ''' Function:簡單的wxPython程序 Input:NONE Output: NONE author: socrates blog:http://www.cnblogs.com/dyx1024/ date:2012-06-30 ''' import wx class MyFrame(wx.Frame): ''' 創建一個Frame類 ''' def __init__(self, image, parent = None, id = -1, pos = wx.DefaultPosition, title = u"Hello wxPython"): temp = image.ConvertToBitmap() size = temp.GetWidth(), temp.GetHeight() #圖片的大小用做窗口大小 wx.Frame.__init__(self, parent, id, title, pos, size) self.bmp = wx.StaticBitmap(parent = self, bitmap = temp) class MyApp(wx.App): ''' 創建一個App類 ''' def OnInit(self): image = wx.Image('back_image.jpg', wx.BITMAP_TYPE_JPEG) #加載國片 self.frame = MyFrame(image) self.frame.Show() self.SetTopWindow(self.frame) return True def main(): app = MyApp() app.MainLoop() if __name__ == '__main__': main() ~~~ 運行結果: ![](https://box.kancloud.cn/2016-06-08_5757935e1501a.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>

                              哎呀哎呀视频在线观看