Python GUI工具包wxPython

简介

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()

Python GUI工具包wxPython_第1张图片

参考

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

你可能感兴趣的:(python,Python爬虫和数据分析,gui,wxPython)