python手记(24)

#!/usr/bin/env python   
 
"""hello.py is a starting point for a wxPython program."""    
 
import wx 
 
class Frame(wx.Frame):   
    pass 
 
class App(wx.App): 
 
    def OnInit(self): 
        self.frame = Frame(parent=None, title='hello')   
        self.frame.Show() 
        self.SetTopWindow(self.frame)   
        return True 
 
if __name__ == '__main__':   
    app = App() 
    app.MainLoop() 

wxpython学习

python手记(24)_第1张图片

你可能感兴趣的:(python)