Popular recipes tagged "meta:requires=tksimpledialog" and "shortcuts" but not "algorithms"http://code.activestate.com/recipes/tags/meta:requires=tksimpledialog-algorithms+shortcuts/2011-05-20T13:22:37-07:00ActiveState Code RecipesExample For winreg (2) (Python)
2011-05-20T13:22:37-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/498151-example-for-winreg-2/
<p style="color: grey">
Python
recipe 498151
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 2.
</p>
<p>This recipe is another example of how to use the winreg module.
The code had the first purpose of demonstrating the concept of
a graphical shell built in Python. The shell was easily modified
to make use of the Window's registry but retains traces of its
original method of operation (all of which has been commented out).</p>
<p>The program down below originally used the pickle module to save
all of its settings when closing down. Now once the escape key is
pressed, this Python 2.5 program can use the module presented in
<a href="http://code.activestate.com/recipes/510392/">recipe 510392</a> to access Microsoft Window's Registry and store its
settings there. Check <code>do_exit</code> and <code>do_config</code> functions for usage.</p>