Showing a .png image in a window in wxPython

前端 未结 2 1154
余生分开走
余生分开走 2020-12-30 09:17

How to show a .png image in a window in wxPython?

2条回答
  •  孤城傲影
    2020-12-30 09:54

    self.png = wx.StaticBitmap(self, -1, wx.Bitmap("path/image.png", wx.BITMAP_TYPE_ANY))
    

提交回复
热议问题