wxPython
wxPython是Python语言的GUI工具包,作为Python的扩展模块实现,包装了wxWidgets。
![]() | |
開發者 | Robin Dunn Harri Pasanen |
---|---|
初始版本 | 1998年[1] |
穩定版本 | 4.1.0[2] (2020年5月24日 ) |
源代码库 | ![]() |
编程语言 | C++ / Python |
操作系统 | 跨平台 |
许可协议 | wxWindows授權條款 |
网站 | wxpython |
wxPython是跨平台的,开源的。
範例
以下是一個簡單的wxPython的Hello World模塊,描述了在wxPython中的兩個主要物件(主視窗物件和應用程序物件),然後藉由呼叫MainLoop()
控制事件驅動系統,而該系統負責該程式的使用者互動部分。
#!/usr/bin/env python
import wx
app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window.
frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window.
frame.Show(True) # Show the frame.
app.MainLoop()
使用wxPython開發的程式
- BitTorrent,一種對等的BitTorrent應用程序。
- Google Drive,Google雲端存儲系統的桌面客戶端[3]。
- GRASS GIS,一種免費且開源的地理信息系統。
- PlayOnLinux,一個Wine軟體相容層的圖形化前端。
參考資料
- . [2007-01-16].
- Robin. . wxPython. 2020-04-24 [2020-07-02] (英语).
- . Google. [28 January 2013]. (原始内容存档于2013-05-25).
延伸閱讀
- Precord, Cody. . Greenwich: Packt Publishing. December 2010: 308. ISBN 978-1-84951-178-0.
- Rappin, Noel; Dunn, Robin. . Greenwich: Manning Publications. March 1, 2006: 552. ISBN 978-1-932394-62-7.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.