Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.
Anybody have any advice thus far?
Anyway, my real question is if anybody knows of any tutorials or source
code from other implementations and other languages that may prove
useful? 4 2233
Putty wrote:
Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.
Anybody have any advice thus far?
Anyway, my real question is if anybody knows of any tutorials or source
code from other implementations and other languages that may prove
useful?
I find that wxPython is very easy to use.. I just noticed a graphic
library that may or may not help http://language-binding.net/pypluspl...p/easybmp.html
I am not sure if you can work with pixels with wxPython but you can
probily do the life game with tiles also..
Do you think it would be reasonable to use wxGrid to make the game
area? Er*********@msn.com wrote:
Putty wrote:
Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.
Anybody have any advice thus far?
Anyway, my real question is if anybody knows of any tutorials or source
code from other implementations and other languages that may prove
useful?
I find that wxPython is very easy to use.. I just noticed a graphic
library that may or may not help http://language-binding.net/pypluspl...p/easybmp.html
I am not sure if you can work with pixels with wxPython but you can
probily do the life game with tiles also..
Putty wrote:
Do you think it would be reasonable to use wxGrid to make the game
area?
Er*********@msn.com wrote:
Putty wrote:
Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.
>
Anybody have any advice thus far?
>
Anyway, my real question is if anybody knows of any tutorials or source
code from other implementations and other languages that may prove
useful?
I find that wxPython is very easy to use.. I just noticed a graphic
library that may or may not help http://language-binding.net/pypluspl...p/easybmp.html
I am not sure if you can work with pixels with wxPython but you can
probily do the life game with tiles also..
void wxGrid(wxWindow *parent, int x, int y, int width, int height, long
style=0, char *name="grid")
Constructor. Before using a wxGrid object, you must call CreateGrid to
set up the required rows and columns.
Looks like it may be right up your alley, here is a couple links that
may be helpfull http://filburt.lns.mit.edu/oops/Html...xgrid/grid.htm http://www.google.com/custom?q=wxGri...D%3A1%3B&hl=en
and mine that probily isn't :)
"Putty" <ja*******@gmail.comwrote:
Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.
You might enjoy looking at Golly, an open source, cross-platform Life
app which uses Gosper's hashlife algorithm to allow the exploration of
patterns at huge scales and speeds: http://golly.sourceforge.net/
Golly's GUI is written in wxWidgets (C++, not wxPython) but we do
use Python as our scripting language: http://golly.sourceforge.net/Help/scripting.html
Andrew This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Uwe Mayer |
last post by:
Hi,
I have come across the following statement a number of times:
http://mail.python.org/pipermail/python-list/2003-July/171805.html
> Python, in general, doesn't try to stop the programmer...
|
by: Paul |
last post by:
In real life situation, do we ever come across a situation where we
would need two base objects in an object.
A snippet is worth 1000 words (: so...
class Base
{
};
class Derived1:public Base...
|
by: athos |
last post by:
Hi all,
Believe you have sound experience in development, however, if we look
at the whole Software Development Life Cycle (SDLC) of the project,
say,
1. Project Initiation,
2. Gathering...
|
by: aura |
last post by:
anybody got C code for this game of life using 8X8 array
|
by: Martin Platt |
last post by:
Hi,
I've been working on designing new architecture to be
used for future development using C#.
We're going quite well with the architecture, having
originally decided not to use the dataset,...
|
by: jen4022599 |
last post by:
I have written a program to calculate the Conway Sequence (eg 3, 13, 1113, 3113, .....) which is:
#include <math.h>
#include <stdio.h>
int i, f;
int con, m, n, p, q, rept, count, r;
...
|
by: bluejack |
last post by:
A recent post asking for help with unions reminded me of this
component of the C language that I have only used a couple of times,
and those almost entirely out of personal whim -- Unions for the...
|
by: Mark Shroyer |
last post by:
I guess this sort of falls under the "shameless plug" category, but
here it is: Recently I used a custom metaclass in a Python program
I've been working on, and I ended up doing a sort of write-up...
|
by: blackslither |
last post by:
I had to implement Game of Life in a 3D matrix (int a) , but the complexity of my implementation is O(n^6) (6 imbricated for) and it runs very slow . Can anyone help me with an optimized version of...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |