Book Image

Python GUI Programming Cookbook

By : Burkhard Meier
Book Image

Python GUI Programming Cookbook

By: Burkhard Meier

Overview of this book

Table of Contents (18 chapters)
Python GUI Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In this chapter, we will introduce another Python GUI toolkit that currently does not ship with Python. It is called wxPython.

There are two versions of this library. The original is called Classic while the newest is called by its development project code name, Phoenix.

In this book, we are solely programming using Python 3, and because the new Phoenix project is aimed at supporting Python 3, this is the version of wxPython we are using in this chapter.

First, we will create a simple wxPython GUI, and then we will try to connect both the tkinter-based GUIs we developed in this book with the new wxPython library.

Note

wxPython is a Python binding to wxWidgets.

The w in wxPython stands for the Windows OS and the x stands for Unix-based operating systems such as Linux and OS X.

If things don't work out using these two GUI toolkits in unison, we will attempt to use Python to solve any problems and then we will use Inter Process Communication (IPC) within Python to make sure that our Python...