Python GUI工具包wxPython

版权声明:本文为博主原创文章,欢迎转载,转载时请以超链接形式标明文章原始出处。 https://blog.csdn.net/lilongsy/article/details/81607966

简介

wxPython是Python的GUI工具包,支持跨平台。

安装

pip install -U wxPython

例子

Hello World

# First things, first. 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()

Hello World

参考

https://www.wxpython.org/
https://github.com/wxWidgets/Phoenix/

猜你喜欢

转载自blog.csdn.net/lilongsy/article/details/81607966