{
  "id": "enwiki-001359575328",
  "slug": "wxpython",
  "title": "WxPython",
  "qid": "",
  "lead": "wxPython is a wrapper for the cross-platform GUI API (often referred to as a \"toolkit\") wxWidgets (which is written in C++) for the Python programming language. It is one of the alternatives to Tkinter. It is implemented as a Python extension module (native code).",
  "body": "wxPython is a wrapper for the cross-platform GUI API (often referred to as a \"toolkit\") wxWidgets (which is written in C++) for the Python programming language. It is one of the alternatives to Tkinter. It is implemented as a Python extension module (native code). ==History== In 1995, Robin Dunn needed a GUI application to be deployed on HP-UX systems but also run Windows 3.1 within short time frame. He needed a cross-platform solution. While evaluating free and commercial solutions, he ran across Python bindings on the wxWidgets toolkit webpage (known as wxWindows at the time). This was Dunn's introduction to Python. Together with Harri Pasanen and Edward Zimmerman he developed those initial bindings into wxPython 0.2. In August 1998, version 0.3 of wxPython was released. It was built for wxWidgets 2.0 and ran on Win32, with a wxGTK version in the works. The first versions of the wrapper were created by hand. However, the code became difficult to maintain and keep synchronized with wxWidgets releases. By 1997, versions were created with SWIG, greatly decreasing the amount of work to update the wrapper. !/usr/bin/env python3 import wx app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window. frame = wx.Frame(None, title=\"Hello World\") # A Frame is a top-level window. frame.Show(True) # Show the frame. app.MainLoop() This is another example of the wxPython Close Button with wxPython GUI display show in Windows 10 operating system. import wx class WxButton(wx.Frame): def __init__(self, *args, **kw): super(WxButton, self).__init__(*args, **kw) self.InitUI() def InitUI(self): pnl = wx.Panel(self) closeButton = wx.Button(pnl, label='Close Me', pos=(20, 20)) closeButton.Bind(wx.EVT_BUTTON, self.OnClose) self.SetSize((350, 250)) self.SetTitle('Close Button') self.Centre() def OnClose(self, e): self.Close(True) def main(): app = wx.App() ex = WxButton(None) ex.Show() app.MainLoop() if __name__ == \"__main__\": main() ==License== Being a wrapper, wxPython uses the same free software license used by wxWidgets (wxWindows License) —which is approved by Free Software Foundation and Open Source Initiative. ==Further reading== ==External links== wxPython Widget Tutorial Series Project Phoenix main page List of applications developed with wxPython",
  "categories": [
    "1868468",
    "23118434",
    "23603337",
    "27899184",
    "28269683",
    "30752582",
    "35755158",
    "56721957",
    "60231905"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1359575328",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1781566319.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001359575328",
    "type": "webpage",
    "title": "WxPython",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/wxpython",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          20
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          20
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001359575328",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1359575328",
    "note": "Immutable snapshot enwiki-001359575328"
  }
}