wxPython Recipes: A Problem - Solution Approach

Front Cover
Apress, Dec 12, 2017 - Computers - 348 pages
1 Review

Quickly discover solutions to common problems, learn best practices, and understand everything wxPython has to offer. This book is for anyone wanting to learn more about how to use the wxPython desktop GUI toolkit. It assumes some prior knowledge of Python and a general understanding of wxPython or GUI development, and contains more than 50 recipes covering various tasks and aspects of the toolkit.

wxPython Recipes guides you step by step. The book takes you through how to create user interfaces in Python, including adding widgets, changing background images, manipulating dialogs, managing data, and much more. Examples target both Python 2.x and 3.x, and cover both wxPython 3.0 and Phoenix, offering a complete collection of ideas to improve your GUI development.

What You'll Learn

  • Work with UI elements such as widgets, buttons, images, boxes, and more
  • Handle data in files and notebooks
  • Implement XML and using XML resources (XRC)
  • Customize the behavior of panels and objects

Who This Book Is For

People who are already familiar with the Python programming language and also have a basic understanding of wxPython.

Readers who understand event loops and the basics of creating user interfaces with another Python UI toolkit, such as Tkinter or PyQt.

 

What people are saying - Write a review

User Review - Flag as inappropriate

I was trying to use you bar_graph.py code and it gave: PendingDeprecationWarning: `SetEnableLegend` in 2016 also the code error-out

Contents

Introduction
1
Working with Images
6
Special Effects
27
The PublishSubscribe Pattern
43
Wizard Recipes
51
Creating Simple Widgets
70
Using Config Files
97
Working with Events
111
Fun with Panels
180
Using Objects in Widgets
189
XML and XRC
201
Working with Sizers
227
Threads and Timers
240
Redirecting Text
269
Grid Recipes
283
Working with Your Application
291

Drag and Drop
133
Working with Frames
150
wxPython and the System Tray
169
Bonus Recipes
317
Index
343
Copyright

Common terms and phrases

About the author (2017)

Mike Driscoll started coding in Python in 2006, where his first assignments included porting Windows login scripts and VBA to Python, which introduced him to wxPython. He's done backend programming and front end user interfaces, writes documentation for wxPython, and currently maintains an automated testing framework in Python. He also owns the popular site "Mouse vs Python" at pythonlibrary.org and has written for the Python Software Foundation, DZone and published Python 101 and Python 201.

Bibliographic information