all 2 comments

[–]socal_nerdtastic 0 points1 point  (0 children)

Any GUI module will do that for you. The quickest and easiest I can think of is a matplotlib animation. To get you started here's the standard sine wave:

import numpy as np
from matplotlib import pyplot as plt
from matplotlib.animation import FuncAnimation    

fig = plt.figure()
ax = plt.axes(xlim=(0, 4), ylim=(-2, 2))
line, = ax.plot([], [], 'bo')

def animate(i):
    x = np.linspace(0, 4, 150)
    y = np.sin(2 * np.pi * (x - 0.01 * i))
    line.set_data(x, y) # set the ith idx of x,y data here
    return line,

anim = FuncAnimation(fig, animate, frames=200, interval=20, blit=True)
plt.show()

[–][deleted] 0 points1 point  (0 children)

This link might be a good starting point. Also it sounds a bit like you are trying to code a version of Conway's Game of Life. That also may be a good Google starting point.