<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=WxPython</id>
	<title>WxPython - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=WxPython"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=WxPython&amp;action=history"/>
	<updated>2026-06-16T06:00:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=WxPython&amp;diff=628865&amp;oldid=prev</id>
		<title>imported&gt;FMSky: Reverted 1 edit by DesignatedGrammarian (talk) to last revision by BitUniverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=WxPython&amp;diff=628865&amp;oldid=prev"/>
		<updated>2025-01-17T02:23:33Z</updated>

		<summary type="html">&lt;p&gt;Reverted 1 edit by &lt;a href=&quot;/index.php/Special:Contributions/DesignatedGrammarian&quot; title=&quot;Special:Contributions/DesignatedGrammarian&quot;&gt;DesignatedGrammarian&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:DesignatedGrammarian&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:DesignatedGrammarian (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last revision by BitUniverse&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Python wrapper for wxWidgets}}&lt;br /&gt;
{{lowercase title|title=wxPython}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = &lt;br /&gt;
| logo                   = WxPython-logo.png&lt;br /&gt;
| logo size              = 210px&lt;br /&gt;
| screenshot             = &lt;br /&gt;
| caption                = wxPython&lt;br /&gt;
| developer              = Robin Dunn&amp;lt;br /&amp;gt;Harri Pasanen&lt;br /&gt;
| released               = {{Start date and age|1998|df=yes}}&lt;br /&gt;
| latest release version = 4.2.2&amp;lt;ref&amp;gt;{{Cite web|date=2024-09-11|title=wxPython Changelog|url=https://www.wxpython.org/news/2024-09-11-wxpython-422-release/index.html|access-date=2024-11-28|website=wxPython|language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| latest release date    = {{Start date and age|2024|09|11}}&lt;br /&gt;
| latest preview version = &lt;br /&gt;
| latest preview date    =&lt;br /&gt;
| programming language   = [[C++]] / [[Python (programming language)|Python]]&lt;br /&gt;
| operating system       = [[Cross-platform]]&lt;br /&gt;
| genre                  =&lt;br /&gt;
| license                = [[wxWidgets#License|wxWindows License]]&lt;br /&gt;
| website                = {{URL|http://wxpython.org/}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wxPython&amp;#039;&amp;#039;&amp;#039; is a [[wrapper library|wrapper]] for the [[cross-platform]] [[graphical user interface|GUI]] [[application programming interface|API]] (often referred to as a &amp;quot;[[toolkit]]&amp;quot;) [[wxWidgets]] (which is written in [[C++]]) for the [[Python (programming language)|Python programming language]]. It is one of the alternatives to [[Tkinter]]. It is implemented as a Python extension module ([[native code]]).&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
In 1995, Robin Dunn needed a [[graphical user interface|GUI]] application to be deployed on [[HP-UX]] systems but also run [[Windows 3.1]] within short time frame. He needed a [[Cross-platform software|cross-platform]] solution. While evaluating free and commercial solutions, he ran across [[Python (programming language)|Python]] bindings on the wxWidgets toolkit [[Web page|webpage]] (known as wxWindows at the time). This was Dunn&amp;#039;s introduction to Python. Together with Harri Pasanen and Edward Zimmerman he [[Software Developer|developed]] those initial bindings into wxPython 0.2.&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{Cite web |last=Team |first=The wxPython |date=2017-07-14 |title=wxPython History |url=https://wxpython.org/pages/history/index.html |access-date=2022-06-25 |website=wxPython |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{Cite web |date=2001-03-12 |title=Yahoo! Groups : python-announce-list Messages :Message 95 of 1083 |url=https://groups.yahoo.com/group/python-announce-list/message/95 |access-date=2022-06-25 |website= |archive-url=https://web.archive.org/web/20010312234326/https://groups.yahoo.com/group/python-announce-list/message/95 |archive-date=12 March 2001 |url-status=dead}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first versions of the wrapper were created by hand. However, the [[Source code|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.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Project Phoenix ===&lt;br /&gt;
In 2010, the Project Phoenix began; an effort to clean up the wxPython [[implementation]] and in the process make it compatible with Python 3.&amp;lt;ref&amp;gt;{{cite web |title=Goals of Project Phoenix |url=http://wiki.wxpython.org/ProjectPhoenix/ProjectGoals |access-date=2016-03-17}}&amp;lt;/ref&amp;gt; The project is a new implementation of wxPython, focused on improving speed, maintainability and extensibility. Like the previous version of wxPython, it wraps the wxWidgets [[C++]] toolkit and provides access to the [[user interface]] portions of the wxWidgets [[API]].&amp;lt;ref&amp;gt;{{cite web |title=Project Phoenix readme file on GitHub |website=[[GitHub]] |url=https://github.com/wxWidgets/Phoenix/blob/master/README.rst |access-date=2014-01-01}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With the release of 4.0.0a1 wxPython in 2017, the Project Phoenix version became the official version.&amp;lt;ref&amp;gt;{{Cite web |last=Robin |date=2017-04-16 |title=wxPython 4.0.0a1 Release |url=https://wxpython.org/news/wxpython-4.0.0a1-release/index.html |access-date=2022-06-25 |website=wxPython |language=en}}&amp;lt;/ref&amp;gt; wxPython 4.x is the current version being developed as of June 2022.&amp;lt;ref&amp;gt;{{Cite web |last=Team |first=The wxPython |date=2020-11-21 |title=wxPython 4.1.1 Released |url=https://wxpython.org/news/2020-11-21-wxpython-411-release/index.html |access-date=2022-06-25 |website=wxPython |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use ==&lt;br /&gt;
wxPython enables Python to be used for [[Cross-platform software|cross-platform]] [[graphical user interface|GUI]] applications requiring very little, if any, platform-specific code.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
This is a simple &amp;quot;[[Hello world program|Hello world]]&amp;quot; module, depicting the creation of the two main [[Object (computer science)|objects]] in wxPython (the main window object and the application object), followed by passing the control to the [[Event-driven programming|event-driven]] system (by calling &amp;lt;code&amp;gt;MainLoop()&amp;lt;/code&amp;gt;) which manages the user-interactive part of the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/env python3&lt;br /&gt;
&lt;br /&gt;
import wx&lt;br /&gt;
&lt;br /&gt;
app = wx.App(False)  # Create a new app, don&amp;#039;t redirect stdout/stderr to a window.&lt;br /&gt;
frame = wx.Frame(None, title=&amp;quot;Hello World&amp;quot;) # A Frame is a top-level window.&lt;br /&gt;
frame.Show(True)     # Show the frame.&lt;br /&gt;
app.MainLoop()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This is another example of the wxPython Close Button with wxPython GUI display show in Windows 10 operating system.[[File:Close button with wxpython in windows 10.png|thumb|Close button with wxPython shown on Windows 10]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python3&amp;quot;&amp;gt;&lt;br /&gt;
import wx&lt;br /&gt;
&lt;br /&gt;
class WxButton(wx.Frame):&lt;br /&gt;
&lt;br /&gt;
    def __init__(self, *args, **kw):&lt;br /&gt;
        super(WxButton, self).__init__(*args, **kw)&lt;br /&gt;
        self.InitUI()&lt;br /&gt;
&lt;br /&gt;
    def InitUI(self):&lt;br /&gt;
        pnl = wx.Panel(self)&lt;br /&gt;
        closeButton = wx.Button(pnl, label=&amp;#039;Close Me&amp;#039;, pos=(20, 20))&lt;br /&gt;
&lt;br /&gt;
        closeButton.Bind(wx.EVT_BUTTON, self.OnClose)&lt;br /&gt;
&lt;br /&gt;
        self.SetSize((350, 250))&lt;br /&gt;
        self.SetTitle(&amp;#039;Close Button&amp;#039;)&lt;br /&gt;
        self.Centre()&lt;br /&gt;
&lt;br /&gt;
    def OnClose(self, e):&lt;br /&gt;
        self.Close(True)&lt;br /&gt;
&lt;br /&gt;
def main():&lt;br /&gt;
    app = wx.App()&lt;br /&gt;
    ex = WxButton(None)&lt;br /&gt;
    ex.Show()&lt;br /&gt;
    app.MainLoop()&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
    main()  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
Being a wrapper, wxPython uses the same [[free software license]] used by [[wxWidgets]] ([[wxWidgets#License|wxWindows License]])&amp;lt;ref&amp;gt;{{cite web |title=Copyright notice |url=http://docs.wxwidgets.org/stable/wx_copyrightnotice.html |access-date=2009-02-27 |archive-date=2009-02-16 |archive-url=https://web.archive.org/web/20090216025901/http://docs.wxwidgets.org/stable/wx_copyrightnotice.html |url-status=dead }}&amp;lt;/ref&amp;gt;—which is approved by [[Free Software Foundation]] and [[Open Source Initiative]].&lt;br /&gt;
&lt;br /&gt;
== Applications developed with wxPython ==&lt;br /&gt;
* [[Chandler (PIM)|Chandler]], a [[Personal information management|personal information]] manager&lt;br /&gt;
* [[Dropbox (service)|Dropbox]], [[Desktop environment|desktop]] client for the Dropbox [[Cloud computing|cloud-based]] storage&amp;lt;ref&amp;gt;{{cite web|title=6 lessons from Dropbox one million files saved every 15 minutes|date=14 March 2011 |url=http://highscalability.com/blog/2011/3/14/6-lessons-from-dropbox-one-million-files-saved-every-15-minu.html}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* [[Editra]], a [[Cross-platform software|multi-platform]] [[text editor]]&lt;br /&gt;
* [[Google Drive]], desktop client for the Google cloud-based storage system&amp;lt;ref&amp;gt;{{cite web|title=Open source components and licenses|url=https://support.google.com/drive/bin/answer.py?hl=en&amp;amp;answer=1716931&amp;amp;p=settings_licenses|publisher=Google Inc.|access-date=28 January 2013}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* [[GRASS GIS]], a free, [[open source]] [[Geographic information system|geographical information system]]&lt;br /&gt;
* [[Métamorphose (renamer)|Métamorphose]], a [[Batch processing|batch]] renamer&lt;br /&gt;
* [[Phatch]], a photo batch processor&lt;br /&gt;
* [[PlayOnLinux]] and [[PlayOnMac]], [[Wine (software)|Wine]] front-ends&lt;br /&gt;
* [[PsychoPy]], experiment creation tool for [[neuroscience]] and [[psychology]] research&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
    Please don&amp;#039;t spam this list with applications that aren&amp;#039;t notable enough to have Wikipedia articles.&lt;br /&gt;
 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Citations ===&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
=== Sources ===&lt;br /&gt;
{{refbegin}}&lt;br /&gt;
* {{cite book&lt;br /&gt;
| first1    = Noel&lt;br /&gt;
| last1     = Rappin&lt;br /&gt;
| first2    = Robin&lt;br /&gt;
| last2     = Dunn&lt;br /&gt;
| title     = wxPython in Action&lt;br /&gt;
| date      = March 1, 2006&lt;br /&gt;
| publisher = [[Manning Publications]]&lt;br /&gt;
| location = Greenwich&lt;br /&gt;
| page     = 552&lt;br /&gt;
| isbn      = 978-1-932394-62-7&lt;br /&gt;
}}&lt;br /&gt;
{{refend}}&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
*{{cite book&lt;br /&gt;
| first1    = Cody&lt;br /&gt;
| last1     = Precord&lt;br /&gt;
| title     = wxPython 2.8 Application Development Cookbook&lt;br /&gt;
| date      = December 2010&lt;br /&gt;
| publisher = [[Packt Publishing]]&lt;br /&gt;
| location = Greenwich&lt;br /&gt;
| pages     = 308&lt;br /&gt;
| isbn      = 978-1-84951-178-0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
{{Portal|Free and open-source software}}&lt;br /&gt;
{{Commons category}}&lt;br /&gt;
* {{Official website|http://wxpython.org/}}&lt;br /&gt;
*[https://coderslegacy.com/wxpython-tutorial/ wxPython Widget Tutorial Series]&lt;br /&gt;
* [http://wiki.wxpython.org/ProjectPhoenix Project Phoenix main page]&lt;br /&gt;
* [http://wiki.wxpython.org/wxPythonPit%20Apps List of applications developed with wxPython]&lt;br /&gt;
&lt;br /&gt;
{{wxWidgets}}&lt;br /&gt;
{{Widget toolkits}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Wxpython}}&lt;br /&gt;
[[Category:1998 software]]&lt;br /&gt;
[[Category:Free computer libraries]]&lt;br /&gt;
[[Category:Python (programming language) libraries]]&lt;br /&gt;
[[Category:Widget toolkits]]&lt;br /&gt;
[[Category:WxWidgets]]&lt;/div&gt;</summary>
		<author><name>imported&gt;FMSky</name></author>
	</entry>
</feed>