Popular recipes by Pavel Krc http://code.activestate.com/recipes/users/4177047/2014-05-12T20:26:20-07:00ActiveState Code RecipesSafely (over)write a file (Python) 2014-05-12T20:26:20-07:00Pavel Krchttp://code.activestate.com/recipes/users/4177047/http://code.activestate.com/recipes/578877-safely-overwrite-a-file/ <p style="color: grey"> Python recipe 578877 by <a href="/recipes/users/4177047/">Pavel Krc</a> . </p> <p>Create a file or replace its content in an atomic way using tempfile.</p> Connect PyGTK object events to class methods automatically (Python) 2011-02-19T17:50:42-08:00Pavel Krchttp://code.activestate.com/recipes/users/4177047/http://code.activestate.com/recipes/577577-connect-pygtk-object-events-to-class-methods-autom/ <p style="color: grey"> Python recipe 577577 by <a href="/recipes/users/4177047/">Pavel Krc</a> (<a href="/recipes/tags/automate/">automate</a>, <a href="/recipes/tags/connect/">connect</a>, <a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/event/">event</a>, <a href="/recipes/tags/pygtk/">pygtk</a>). Revision 2. </p> <p>A module that allows you to not to repeat yourself (DRY) while writing typical PyGTK constructions (an object containing PyGTK widgets with its methods servicing widget events) by calling connect() automatically. See docstring.</p>