Loading AI tools
来自维基百科,自由的百科全书
wxPython是Python语言的GUI工具包,作为Python的扩展模块实现,包装了wxWidgets。
此條目需要擴充。 (2015年9月26日) |
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()
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.