Popular recipes tagged "meta:requires=tkinter.font"http://code.activestate.com/recipes/tags/meta:requires=tkinter.font/2014-09-05T15:02:11-07:00ActiveState Code RecipesGame of Life - Python 3.4 & tkinter (Python)
2014-09-05T15:02:11-07:00Peter Mhttp://code.activestate.com/recipes/users/4190729/http://code.activestate.com/recipes/578928-game-of-life-python-34-tkinter/
<p style="color: grey">
Python
recipe 578928
by <a href="/recipes/users/4190729/">Peter M</a>
(<a href="/recipes/tags/python3/">python3</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
</p>
<p>I took this well-know game to design my own solution, and make a GUI for it.</p>
<p>To run the program, you will need to create a txt file with rows of dots, so like this:</p>
<p>......
......
......
......</p>
<p>and name it empty_board.gol
(I have tested this program withwith 55x55)</p>
<p>It is functional and not object oriented.</p>
<p>My game of life algorithm is probably not the best one around (suggestions welcome), but I think this program is a nice demo of with tkinter can do and how easy it is to program GUI's with tkinter.</p>
<p>It has been written and tested in python 3.4 but I guess any version 3 should work, and probably only minor changes are needed to make it work in 2.6 or 2.7 (e.g. change tkinter to Tkinter).</p>
safetkinter.py (Python)
2012-06-05T03:23:47-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578153-safetkinterpy/
<p style="color: grey">
Python
recipe 578153
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/threadsafe/">threadsafe</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
</p>
<p>Register tkinter classes with threadbox for immediate usage.</p>
<p>This module clones several classes from the tkinter library for use with
threads. Instances from these new classes should run on whatever thread
the root was created on. Child classes inherit the parent's safety.</p>
File Share Messenger 2.5 (Python)
2011-04-06T02:45:15-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577638-file-share-messenger-25/
<p style="color: grey">
Python
recipe 577638
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/file_io/">file_io</a>, <a href="/recipes/tags/file_share/">file_share</a>, <a href="/recipes/tags/gui/">gui</a>, <a href="/recipes/tags/messenger/">messenger</a>, <a href="/recipes/tags/network/">network</a>, <a href="/recipes/tags/workaround/">workaround</a>).
</p>
<p>After writing the limited program shown in <a href="http://code.activestate.com/recipes/577637/">recipe 577637</a>, the following program was written with a better yet incompatible I/O system designed not to fill up a file share with many, separate files. This program had five revisions as outlined within the source code. To access settings within this program, use the "F2" key. Documentation may be accessed via the "F1" key (with future plans cut).</p>
<p>If anyone wishes to comment or vote this recipe down, please provide your insight into the fault(s) of the program and provide a suggestion as to what solution you would implement to fix the problems.</p>