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()
上一篇下一篇

猜你喜欢

热点阅读