© Mike Driscoll 2018
Mike DriscollwxPython Recipeshttps://doi.org/10.1007/978-1-4842-3237-8_7

7. Using Config Files

Mike Driscoll
(1)
Ankeny, New York, USA
 

Recipe 7-1. Generating a Dialog from a Config File

Problem

After writing an article about the wonderful ConfigObj package on my blog, one of my readers asked if there was a way to use a config file to generate a dialog. I took this idea and decided to give it a try. For this recipe, you will need to install ConfigObj in addition to wxPython. If you don’t already have ConfigObj, all you need to do is use pip to install it:
pip install configobj
Now that you have ConfigObj installed, we can continue. The first thing we need to do is to create some sort of configuration file that we can use to generate ...

Get wxPython Recipes: A Problem - Solution Approach 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.