wxPython

作者: __construct | 来源:发表于2017-10-27 15:07 被阅读0次
  • 官网上一个最基础的例子
# 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()

相关文章

网友评论

      本文标题:wxPython

      本文链接:https://www.haomeiwen.com/subject/hlarpxtx.html