Email the Author
You can use this page to email Michael Driscoll about wxPython Cookbook.
About the Book
The wxPython Cookbook is for anyone wanting to learn more about how to use wxPython. It has over 50 recipes that cover various aspects of the wxPython desktop GUI toolkit. Following is a listing of most of the recipes in no particular order:
- Adding / Removing Widgets Dynamically
- How to put a background image on a panel
- Binding Multiple Widgets to the Same Handler
- Catching Exceptions from Anywhere
- wxPython's Context Managers
- Converting wx.DateTime to Python datetime
- Creating an About Box
- How to Create a Login Dialog
- How to Create a "Dark Mode"
- Generating a Dialog from a Config File
- How to Disable a Wizard's Next Button
- How to Use Drag and Drop
- How to Drag and Drop a File From Your App to the OS
- How to Edit Your GUI Interactively Using reload()
- How to Embed an Image in the Title Bar
- Extracting XML from the RichTextCtrl
- How to Fade-in a Frame / Dialog
- How to Fire Multiple Event Handlers
- Making your Frame Maximize or Full Screen
- Using wx.Frame Styles
- Get the Event Name Instead of an Integer
- How to Get Children Widgets from a Sizer
- How to Use the Clipboard
- Catching Key and Char Events
- Learning How Focus Works in wxPython
- Making Your Text Flash
- Minimizing to System Tray
- Using ObjectListView instead of ListCtrl
- Making a Panel Self-Destruct
- How to Switch Between Panels
- wxPython: Using PyDispatcher instead of Pubsub
- Creating Graphs with PyPlot
- Redirect Python's Logging Module to a TextCtrl
- Redirecting stdout / stderr
- Resetting the Background Color
- Saving Data to a Config File
- How to Take a Screenshot of Your wxPython App and Print it
- Creating a Simple Notebook
- Ensuring Only One Instance Per Frame
- Storing Objects in ComboBox or ListBox Widgets
- Syncing Scrolling Between Two Grids
- Creating Taskbar Icons
- A wx.Timer Tutorial
- How to Update a Progress Bar from a Thread
- Updating Your Application with Esky
- Creating a URL Shortener
- Using Threads in wxPython
- How to Create a Grid in XRC
- An Introduction to XRC
This book is for wxPython 3.0 and Phoenix. It is also targeted at Python 2 and Python 3 and is written for developers who already have experience with Python and wxPython. This book does not contain an introduction to wxPython or Python.
About the Author
Michael has been programming with Python since 2006. He is the author of the popular Python blog, The Mouse Vs. the Python. Michael has been a technical reviewer for Packt Publishing and No Starch Press. He is also a contributor on Real Python.
He also co-authored The Essential Core Python Cheat Sheet for DZone.
Michael released his first book, Python 101, June 3rd, 2014. He wrote the follow up, Python 201: Intermediate Python and published it in the summer of 2016. He is also the author of wxPython Cookbook from Apress as well as Python Interviews from Packt Publishing.
Michael is currently working on some new books as well.