How to create our GUI in wxPython

In this recipe, we will start to create our Python GUIs using the wxPython GUI toolkit.

We will first recreate several of the widgets we previously created using tkinter, which ships with Python.

Then, we will explore some of the widgets the wxPython GUI toolkit offers, which are harder to create using tkinter.

Getting ready

The previous recipe showed you how to install the correct version of wxPython that matches both your version of Python and the OS you are running.

How to do it...

A good place to start exploring the wxPython GUI toolkit is by going to the following URL: http://wxpython.org/Phoenix/docs/html/gallery.html

This webpage displays many wxPython widgets. By clicking on any of them, we are taken to their ...

Get Python GUI Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.