Python GUI programming examples
Python HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Chapter-01 First commit Mar 7, 2012
Chapter-02 First commit Mar 7, 2012
Chapter-03 First commit Mar 7, 2012
Chapter-04 First commit Mar 7, 2012
Chapter-05 First commit Mar 7, 2012
Chapter-06 First commit Mar 7, 2012
Chapter-07 First commit Mar 7, 2012
Chapter-08 First commit Mar 7, 2012
Chapter-09 First commit Mar 7, 2012
Chapter-10 First commit Mar 7, 2012
Chapter-11 First commit Mar 7, 2012
Chapter-12 First commit Mar 7, 2012
Chapter-13 First commit Mar 7, 2012
Chapter-14 First commit Mar 7, 2012
Chapter-15 First commit Mar 7, 2012
Chapter-16 First commit Mar 7, 2012
Chapter-17 First commit Mar 7, 2012
Chapter-18 First commit Mar 7, 2012
README.md Update README.md Nov 7, 2017

README.md

wxPython in Action

wxPython is a Python extension library for developing cross platform GUI. It is an alternative to other GUI development toolkits like PyQt, Tkinter etc. This repostiory contains a variety of code examples for developing different GUI elements with wxPython.

Usage

Below simple module demonstrantes creation of two main objects in wxPython which are the main window object and the application object, followed by passing the control to the event-driven system by calling MainLoop() which manages the user-interactive part of the program.

#!/usr/bin/env python
import wx

class App(wx.App):
    def OnInit(self):
        frame = wx.Frame(parent=None, title='Bare')
        frame.Show()
        return True

app = App()
app.MainLoop()

Download

Download or fork the repository

git clone https://github.com/ubbn/wxPython.git

or

wget https://github.com/ubbn/wxPython/archive/master.zip

Disclosure

Those original code examples are found in a book wxPython in Action authored by Noel Rappin who is a senior developer and agile Coach at Table XI. Noel has authored multiple technical books, including Rails 4 Test Prescriptions, Master Space and Time With JavaScript, Trust-Driven Development and several more. If you like those example codes, I encourage you to buy his book wxPython in Action. Contact with him on his website or follow him on twitter.

DISCLAIMER: I am not affiliated with either Noel Rappin or the sales of this book.