wxPython
2017-10-27 本文已影响0人
__construct
- 官网上一个最基础的例子
# First things, import the wxPython package
import wx
# Next, create an application object
app = wx.App()
# Then a frame
frm = wx.Frame(None, title="Hello World")
# Show it
frm.Show()
# start the event loop
app.MainLoop()
另一种写法,一句话搞定
import wx; app = wx.App(); wx.Frame(None, title = "Hello World").Show(); app.MainLoop()