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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                一個wxPython程序必須有一個Frame類和App類對象,這兩個類可以自己編寫,對于簡單的應用,可以直接使用wx.PySimpleApp,從而避免了自己編寫APP類。下面是上一篇筆記中小程序的另一種寫法: ~~~ #!/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(): #創建一個PySimpleApp類對象 app = wx.PySimpleApp() image = wx.Image('back_image.jpg', wx.BITMAP_TYPE_JPEG) #加載國片 frame = MyFrame(image) frame.Show() app.MainLoop() if __name__ == '__main__': main() ~~~ 運行結果與之前相同。
                  <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>

                              哎呀哎呀视频在线观看