Popular recipes tagged "meta:requires=tksimpledialog"http://code.activestate.com/recipes/tags/meta:requires=tksimpledialog/2013-06-18T15:33:01-07:00ActiveState Code RecipesPlain Text Editor in Python (Python)
2013-06-18T15:33:01-07:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578568-plain-text-editor-in-python/
<p style="color: grey">
Python
recipe 578568
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/editor/">editor</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/text_processing/">text_processing</a>).
</p>
<p>Just a simple text editor written in Python with Tk for graphics. </p>
<p>Check out my blog <a href="http://thelivingpearl.com/">Captain DeadBones Chronicles</a></p>
Miller-Rabin Primality Test (Python)
2007-04-07T16:11:50-07:00Dite Ditehttp://code.activestate.com/recipes/users/4047667/http://code.activestate.com/recipes/511459-miller-rabin-primality-test/
<p style="color: grey">
Python
recipe 511459
by <a href="/recipes/users/4047667/">Dite Dite</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>Very simple implementation of Miller-Rabin Primality Test with Tkinter</p>
Kaos Rain (MKv3) (Python)
2007-03-20T18:45:43-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510398-kaos-rain-mkv3/
<p style="color: grey">
Python
recipe 510398
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>This program provides sample usage for the opt.py
and physics.py modules shown in previous recipes.</p>
Mark's Game (Python)
2007-02-28T16:58:23-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/502267-marks-game/
<p style="color: grey">
Python
recipe 502267
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>The recipe is a direct descendant of the program presented here:
<a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502251" rel="nofollow">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502251</a>
This program was created at the suggestion of "Mark" (a friend
of mine), and so the game was named in his honor. A high score
table is supported and is automatically saved to and loaded from
a file if possible. The object of the game is to click on each
ball until it is purple. The score is based on how many seconds
are left on the clock in the bottom, left corner of the screen.
Have fun, and try to beat the game in sixty seconds or less; it
is possible!</p>
Example 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>
newaskstring Dialog (Python)
2004-06-19T02:58:10-07:00Michael Foordhttp://code.activestate.com/recipes/users/1565518/http://code.activestate.com/recipes/286156-newaskstring-dialog/
<p style="color: grey">
Python
recipe 286156
by <a href="/recipes/users/1565518/">Michael Foord</a>
.
</p>
<p>A <em>tiny</em> adjustment to the askstring dialog in the standard module tkSimpleDialog. The underlying code allows a default string to be passed to in, but the actual dialog function doesn't.. This one does.</p>