Popular recipes by Walker Hale http://code.activestate.com/recipes/users/2928779/2006-07-06T14:39:56-07:00ActiveState Code RecipesEasily creating dialog boxes from XRC files (Python) 2006-07-06T14:39:56-07:00Walker Halehttp://code.activestate.com/recipes/users/2928779/http://code.activestate.com/recipes/496868-easily-creating-dialog-boxes-from-xrc-files/ <p style="color: grey"> Python recipe 496868 by <a href="/recipes/users/2928779/">Walker Hale</a> (<a href="/recipes/tags/ui/">ui</a>). </p> <p>This module allows creating and running a custom dialog box with a single function call. The custom dialog box must first be defined in an external XRC file. Editors like XRCed and wxGlade allow easily designing custom dialog boxes. You can then invoke the dialog box even if your application has no other GUI.</p> Add support for the "in" operator to the attributes map of minidom elements (Python) 2006-06-23T18:54:14-07:00Walker Halehttp://code.activestate.com/recipes/users/2928779/http://code.activestate.com/recipes/496817-add-support-for-the-in-operator-to-the-attributes-/ <p style="color: grey"> Python recipe 496817 by <a href="/recipes/users/2928779/">Walker Hale</a> (<a href="/recipes/tags/xml/">xml</a>). Revision 2. </p> <p>When you parse XML using minidom, you can get a map of attributes for any element. The problem is that using the "in" operator on this map will raise an exception. These three lines of code will fix that.</p>