本文实例讲述了python之wxPython的使用方法,分享给大家供大家参考。具体方法如下:
先来看看效果,这里加载一张图片:
代码如下:
#!/usr/bin/env python
hello wxPython program
import wx
class Frame(wx.Frame): #wxPrame subclass
Frame class that display a image
def __init__(self, image, parent=None, id=-1,
pos=wx.DefaultPosition,