「wxWidgets」 –

认识

官网:https://wxpython.org/
文档:https://wxpython.org/pages/overview/
仓库:https://github.com/wxWidgets/Phoenix/

Just like “Classic” wxPython, Phoenix wraps the wxWidgets C++ toolkit and provides access to the user interface portions of the wxWidgets API, enabling Python applications to have a native GUI on Windows, Macs or Unix systems, with a native look and feel and requiring very little (if any) platform specific code. 简而言之,wxWidgets 提供创建跨平台的 C++ 应用程序的方式,其具有丰富的 API 集,例如,文件系统,线程,日期和时间,数据结构,……

构建

# pip install wxPython
Collecting wxPython
  Downloading wxPython-4.2.3.tar.gz (58.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.9/58.9 MB 956.4 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: wxPython
  Building wheel for wxPython (pyproject.toml) ... done
  Created wheel for wxPython: filename=wxpython-4.2.3-cp312-cp312-linux_x86_64.whl size=152089747 sha256=41db1d1dd7b8002db44f600b0459977344f3f7dd2be2e6491a6c7d9b945bba75
  Stored in directory: /home/k4nzdroid/.cache/pip/wheels/6c/37/78/d31ece16887badba5314957693db1349e02939a63a564a3145
Successfully built wxPython
Installing collected packages: wxPython
Successfully installed wxPython-4.2.3

[notice] A new release of pip is available: 25.0.1 -> 25.2
[notice] To update, run: /home/k4nzdroid/.asdf/installs/python/3.12.10/bin/python3.12 -m pip install --upgrade pip
Reshimming asdf python...

# 2025-10-24 安装过程需要消耗一些时间以及资源进行编译。